-
movement restriction
Hi, I am a beginner with MMF2.
I have created a pretty wide frame, and the display is scrolling +1 pixel "always".
My spaceship has an 8-directions movement and it isn't supposed to move outside the display.
When I set the event "spaceship leaves play area" -> "movement = stop", the restriction functions okay with the upper and lower edge of the display, but not the left and right edge. When I set the event "compare x/y value equal to left/right/top/bottom edge" -> "movement = stop" it still doesn't work! There has got to be a way for the spaceship to stop at the edges of the display. Please help!
-
Re: movement restriction
The play area is the frame, not the display. You can get the coordinates of the visible area with X Left Frame, X Right Frame, Y Top Frame, Y Bottom Frame.