Player conditional exit of room

Started by protek, Mon 07/11/2016 13:11:43

Previous topic - Next topic

protek

I've set to the room right edge leaveRightEdge event handler a condition that'll prevent the player character exiting the room unless the condition is met. If the condition isn't met, I use the display function to tell that the player can't leave the room.

The problem is that the game gets stuck displaying the message on a loop and I can't move the player character. Is there way that the message would be displayed only once per attempt to exit the room?

Thanks!

Slasher

A simple way is to have the character walk (eBlock) back away from the edge.

protek

Ah, I actually tried the walking but didn't determine the eblock. Have to try that this evening. Thanks!

Cassiebsg

Yes, and make sure you do it before the display. ;)
There are those who believe that life here began out there...

protek


SMF spam blocked by CleanTalk