A bit of a specific, and big question...
Top down Rpg, I'd like to throw an object like a bomb in 4 directions... the longer you hold down the button the further the throw. Represented by a power meter.
Not sure if there are any specific examples, so it would be useful if I could get a workflow:
1. Hold down button/key
2. Start bomb-throw-timer
3. Power meter Y scale increases (linked to time? If time = 3 seconds, Y scale = 300px?)
4. Let go of button
5. Stop bomb-throw timer
6. If timer = 3 seconds, distance = 300px etc?
7. Spawn bullet with distance set
8. Reset bomb-throw-timer
Does that make sense of is there a more efficient way to do it?
It would be good to show an arc when thrown too (particularly when thrown on the X axis). Though this could be animated in the frames I guess?
Thanks for any tips.