Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Crimmy

#1

Hey guys. I'm coding for my game, and at the suggestion of Babar I'm simplifying the control scheme :P
I'm trying to figure out how to set it so that holding down the left mouse click opens up a GUI verbcoin (which has the options Look and Interact)

This is what I've got, under the 'function on_mouse_click(MouseButton button) {' command (I've commented out the original eMouseLeft script)

Code: ags

else if (mouse.IsButtonDown(eMouseLeft)){
    SetTimer(1, 40);
    if (IsTimerExpired(1)) {
      gVerbcoin.Visible = true;
      mouse.Mode = eModeInteract;
      mouse.UseModeGraphic(eModePointer);
    }
    else {
       SetTimer(1, 0);
       ProcessClick(mouse.x, mouse.y, eModeWalkto);
    }
  }

And I've written '  int timer=0;' at the top of the global script to set the value prior.

At the moment it just goes straight to the else command. I haven't got timer commands to work yet, so it's very likely that.
#2
Hey guys. First post, though I'm lurking the IRC a bit

I was doing dialogue and minor scripting and the game quits when I mouseover the GUI bar at the top. I am pretty clueless why, since no errors show up when the game runs :\

The error message Illegal Exception says:
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x005591B0;
program pointer is +379, ACI version 3.3.0.1162, gtags (2049,64)

The crash file is here - https://dl.dropboxusercontent.com/u/48084487/CrashInfo.3.3.0.1162.dmp

(C: Solution was changing the driver to 5 then 9 again)

-------------------
Side question, mostly irrelevant - how do I stop the GUI that shows up on mouseover from appearing?
SMF spam blocked by CleanTalk