What is the best way of going about creating multiple animations that happen at the same time but are triggered by different events. I have only used threads to create multiple animations in applets where the animations are triggered off the same event. I've tried using multiple threads but that seems to have only one thread run at a time.
I am trying to code a simple game that has one character throwing an object at a moving character. The throw is triggered off a key press and the other character moves consistently throughout the game.
I am trying to code a simple game that has one character throwing an object at a moving character. The throw is triggered off a key press and the other character moves consistently throughout the game.