Dirk
Member
Hi!
I want to change my player's state (05) if he collides with a certain tile. If he is already in the state the change gets skipped.
This is my tile code:
It works a bit, but the animation won't start. It stays at the first frame. Also there is one slight flicker of the second frame when I move the player.
It actually looks better when I skip the state check and simply set it to state 05. The animation still won't start.
While pressing up or down the animation gets displayed.
I want to change my player's state (05) if he collides with a certain tile. If he is already in the state the change gets skipped.
This is my tile code:
Code:
CPX player1_object
BNE +
GetCurrentActionType player1_object
CMP #$05 ; If already in state 05 skip state change
BEQ +
ChangeObjectState #$05, #$02
+
It works a bit, but the animation won't start. It stays at the first frame. Also there is one slight flicker of the second frame when I move the player.
It actually looks better when I skip the state check and simply set it to state 05. The animation still won't start.
While pressing up or down the animation gets displayed.