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 :(

Comments

  • quantumsheepquantumsheep Member Posts: 8,188
    WOW!

    IT EVEN HAS MY FACE ON IT!!!!

    Thanks dude, will check it out now.

    (watches as a thousand Missile Command clones appear)

    QS :D
  • quantumsheepquantumsheep Member Posts: 8,188
    It's no problem! It'll help others ;)

    I liked that you gave the bullet new attributes target x and target y - took me a sec to notice, but it's very, very clever!

    You, Sir, get a 'Special Thanks' in the credits! Let me know your real name if you like and I'll make sure it goes in ;)

    Thanks again - I can actually start building levels now! Genius!

    A grateful QS :)
  • quantumsheepquantumsheep Member Posts: 8,188
    Actually...

    While it works fine in GS, It doesn't work so well on an actual iPhone in the viewer...

    :O

    What a rollercoaster, eh?

    Can the lovely CodeMonkey offer a suggestion as to what to do to get it working?

    Cheers,

    QS

    Also, is there a way to get it working with touches so that you can press down on multiple positions and get a spread of missiles going up? *cheeky grin*
  • quantumsheepquantumsheep Member Posts: 8,188
    In the viewer it's not reading the presses correctly - it will usually go in the opposite direction, or off by about 30 degress...

    As you can imagine, precision's important in a game like this ;)
  • quantumsheepquantumsheep Member Posts: 8,188
    Was having your actor routed to the floor important? Mine move...

    QS
  • quantumsheepquantumsheep Member Posts: 8,188
    oooh!
  • quantumsheepquantumsheep Member Posts: 8,188
    What did you change???
  • quantumsheepquantumsheep Member Posts: 8,188
    Oh it did - and your example works when I try it in the viewer - I just can't see what's different! :p
  • quantumsheepquantumsheep Member Posts: 8,188
    AH! I see it now.

    Thanks man - I really appreciate the time you took to make a bloody demo *AND* help me work out the issues!

    When this game goes to the App store, you, sir, get a free promo code :)

    Thank you again - it's greatly appreciated!

    Onwards!

    QS :)
  • JGary321JGary321 Member Posts: 1,246
    You two get a room =)
  • JGary321JGary321 Member Posts: 1,246
    just consider me the 3rd wheel ;)
  • quantumsheepquantumsheep Member Posts: 8,188
    The horror... THE HORROR!!!!
Sign In or Register to comment.