Hello! Tell me, my character had to fall from the top screen to the bottom screen .. He falls, but the screen does not change .. here's some code .. ... IF X >= 172 SCREENDOWN LET X = 26 EXIT ENDIF ... What am I doing wrong? Location on the map screen..
Post by 10loadgameplay on Feb 12, 2013 16:40:12 GMT
Hey kas29, I struggled with this problem too. The method I used was to display the x co-ordinate onscreen & when the sprite fell I could see if it crossed the threshold (in your case 172). It could be that 172 is too high & needs reducing by 8 or 16 pixels. In Main Loop 1 add something like: let line = 0 let column = 0 Display I In Player Control Type 0 Let I = x The X co-ord will now be displayed in real-time in the top left corner of the screen. Hope this helps
NB: Not sure if this was a typo in your code, but my code looks like this: IF X = > 146 SCREENDOWN LET X = 8