Hello all!
I'm working on a 2D tiled RPG, and right now I'm working on an event handler, where in the main loop it checks if the space key is being pressed, and then if the space key is pressed it jumps to another portion in code that checks if there is a collision between the main character sprite and a NPC sprite (the event handler), and if there is one, then it jumps to the appropriate event (in this case, being I only have one NPC up now, I have it displaying a text saying "Hello!" in the center of the screen). Well, I hit the space key when my main character has collided with the NPC, and it doesn't pop up with "Hello!" right away. Instead, it stops the loop like a WAIT KEY command, and then it shows the text after I hit another key, and it then does another WAIT KEY (this wait key is correct though).
My event is laid out like this:
_npc1_event:
set text font "terminal" : set text size 12
Ink RGB(0, 255, 0), RGB(0, 0, 0)
Center Text 320, 240, "Hello!"
wait key
Return
So the jist of this question is: Howcome it doesn't show the text right away when I hit the spacebar key the first time?
Any help would be appreciated... Thanks!