Hi all.
I try using sprite library move, but its seems wrong.
I do...
Then when i changed move key, its do a last move on opposite direction, I mean if I do 'Right, Right, Right, Left', last move will be Right.
Another question is if I don't like to do any move (move some sprites and not others), i have to put velocity to 0 or I can put direction, to -1 for example?
Thanks in advance!
Best Regards, fjsantos.
________
buy cheap vaporizer
I try using sprite library move, but its seems wrong.
I do...
B4X:
Sub GameForm_KeyPress(specialKey)
Select specialKey
Case cRightKey, 80
Move(0, 22)
Case cLeftKey, 79
Move(180, 22)
End Select
End Sub
Sub Move(d, v)
CellSprite.Direction = d
CellSprite.Velocity = v
GameGameWindow.Tick
End Sub
Then when i changed move key, its do a last move on opposite direction, I mean if I do 'Right, Right, Right, Left', last move will be Right.
Another question is if I don't like to do any move (move some sprites and not others), i have to put velocity to 0 or I can put direction, to -1 for example?
Thanks in advance!
Best Regards, fjsantos.
________
buy cheap vaporizer
Last edited: