switch between gif animations on keyPressed
in
Programming Questions
•
1 year ago
hi, I'm relatively new to processing and I'm struggling with a game that I'm making as part of a university project. I'm planning on making a vertical scrolling shooter where you control a spaceship, What I want to happen is that by default the ship is using a flying animation but when the left and right key are pressed the ship moves in that direction and the animation changes to a turning animation until the key is released where it returns to the flying animation. I've been playing around with it for a few hours and not got anywhere. Obviously since this is a university assignment I'd rather not have the work done for me but if you guys could offer suggestions and point me in the right direction I would be very grateful.
Thanks,
KG
1