Post by Jonathan Cauldwell on Jun 2, 2012 18:59:50 GMT
The standard way of moving from one screen to the next is something like this
IF Y > 246 SCREENRIGHT LET Y = 8 ENDIF Which moves one screen right and positions the player at the left edge of the screen in preparation. However, the screen does not get redrawn instantly and AGD continues with the rest of the event before that happens. The sprite is now on the other side of the screen, and if there are no walls or platform blocks below its new position, gravity kicks in and the sprite starts to drop.
The solution would be to exit the event immediately as soon as you change screen, so I'll add an EXIT command to the next release version. Meanwhile, you can get around the problem in 3.1 (not 3.0) by adding ASM 201 as an alternative:
IF Y > 246 SCREENRIGHT LET Y = 8 ASM 201 ENDIF I won't go into details, but ASM 201 exits an event immediately. Be careful how you type it, get it wrong and you could do a lot of damage.