@_λιεχ_ ideally animation states is what your after i didn't want to confuse you, the Gothic Vania sample program provides a state machine which triggers animations when called.
as Richard was saying you only count the frames in the animation so setspriteanimation(sprite,4,8,10) the end frame would be 4.
i added the sprite speed part so the user can't interrupt movement between moves.
i'd be happy to share a program later if your still having trouble to help you get over the first few hills.
That would be collideMap(yourSprite), in the simplest case. That will move yourSprite out of the way of any collision zones of your map.
Depending on your game, you will need to do additional work. If you keep the desired location of your character in a variable, you need to read it out post-collision with getSpriteLocation().
If your character is supposed to have momentum/velocity, that is if it's not instantly stopping if you center the stick, you'll need to understand and use the returned data of collideMap and use it to modify the velocity so that further movement does not drive you further into the collision zones. Or maybe you want to bounce off walls. That is all
, very hard to explain in a vacuum and you probably don't need it at first.
"Who are you" by Richard (EUP63MND5M)
"OMOZON" by purple (S8373MND18) (I think this wants a setView or setMode around line 117)
"Dichotomy" by Devieus (NXHQTRNDNZ)
"Captain Boomer" by Vinicity (L3F43MND5C)
"FURY BOX" by waldron (DT4S3MND5U)
"Mars Station 0" by Dinocoder (DNSF2MND9F)
"Good Xor Evil" by Ben 2.0 (NXYW7SKD5K)
"The MUU Channel" by monkeee (NXKU4AGHHB)