Missile Command style logic

quantumsheepquantumsheep Member Posts: 8,188
edited November -1 in Working with GS (Mac)
Hi all,

I come to you, bearing no gifts, and offering a burden :(

Math, my friends, has come to haunt me... at least, I *think* it's math...

I really like the old classic Missile Command ( http://en.wikipedia.org/wiki/Missile_command ) and wanted to do a variation on that theme.

Essentially, I need to make multiple clicks with the mouse and have multiple objects accelerate towards the corresponding click position.

With what I have right now, once I make a second or third click, the original projectiles will change course and move towards that second mouse click.

I'm thinking I would have to keep track of multiple clicks, and have a separate projectile for each click of the mouse (so that missile 1 goes to mouse click 1, missile 2 goes to mouse click 2, as opposed to all missiles going towards the latest mouse click).

Is there a more efficient method of doing this?

Any help would really be appreciated!

Many thanks,

QS :(

Dr. Sam Beckett never returned home...
Twitter: https://twitter.com/Quantum_Sheep
Web: https://quantumsheep.itch.io

Comments

Sign In or Register to comment.