Log In  

This will loop sprite 1 through 4

T = 1
T += 1
SPR (1 + T % 60 / 30 * 2)

I was trying to figure out some simple math that basically does what the above code does.
I found that code in a demo cart and was happy to see that I was on the right track (sort of) but I don't understand what is going on here.

If I can't figure this out maybe I'm just not smart enough for this whole programming thing :(

P#56263 2018-09-06 10:08 ( Edited 2018-09-06 21:01)


It would be nice if you could move around the map editor with the arrow keys/d-pad.
Especially on the PocketChip.

P#47127 2017-12-05 11:05 ( Edited 2017-12-07 00:07)


If I really have to post my sloppy noob code I will but I am hoping that I can get a quick answer.
When my player sprite moves onto a grid flagged 1 then that grid is solid and the sprite stops moving. If the flag is 2 then it moves to a different room AKA different MAP() value(s)
This works as it should but the solid collision still applies to the tiles from the previous room. I do not understand this because the solid function should update when the new map tiles are drawn.

In other words. It looks like my character is in a different place but all the solid grid tiles are from the previous "room".

P#46723 2017-11-26 15:49 ( Edited 2017-11-26 20:51)

Follow Lexaloffle:          
Generated 2024-02-29 04:48:33 | 0.065s | Q:7