'Spirit' control function...possible?

orien2v2orien2v2 Member, PRO Posts: 55
edited November -1 in Working with GS (Mac)
I'm trying to control my actor like how Spirit does it. If you don't know Spirit, look in the app store and buy it. Good game and worth every penny. Plus it's 50% off now.

Here's a video on how it works. Basically it follows your touch, but it doesn't go to the touch coordinates. It just moves it around from it's current position.

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    Make itaccelerate toward noise position x and y.

    Asymptoteell
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Asymptoteell said:
    Make itaccelerate toward noise position x and y.

    Asymptoteell

    Looks like you will also need to setup an offset to your touch just constraining to touch will hold it right under your finger.

    Looks cool though
  • orien2v2orien2v2 Member, PRO Posts: 55
    No that didn't work. That would just make my actor go to the point where I touched. If you notice closely the Spirit didn't actually go to the touch point, rather it follows the finger drag movement from it's own position. Does it involve creating invisible actors? Or maybe some math?
  • orien2v2orien2v2 Member, PRO Posts: 55
    tenrdrmer said:
    Looks like you will also need to setup an offset to your touch just constraining to touch will hold it right under your finger.

    Looks cool though

    yes that's what I thought so too but how do I offset it?
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Try orbz's waypoint demo, and spawn in a bunch of waypoints along the way.
  • sparkzillasparkzilla Member Posts: 152
    If you can figure out the circular swipe motion please let me know.

    http://gamesalad.com/forums/topic.php?id=18866
  • AsymptoteellAsymptoteell Member Posts: 1,362
    Spakzilla, I'll try to make It tomorrow.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    orien2v2 said:
    yes that's what I thought so too but how do I offset it?

    in your constrain rule mouse.y+50

    you'll just have to play with it. You may have to do something with magnitude that reducing the offset when the actor get closer to the bottom.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    tenrdrmer said:
    in your constrain rule mouse.y+50

    you'll just have to play with it.

    +1
  • orien2v2orien2v2 Member, PRO Posts: 55
    tenrdrmer said:
    in your constrain rule mouse.y+50

    you'll just have to play with it. You may have to do something with magnitude that reducing the offset when the actor get closer to the bottom.

    Ok I tried that and turns out it made my game super easy to play. So I think I'll just stick to the accelerometer. Your idea worked somehow but I still need to figure how much to offset based on how close is the touch to the actor and which side if the actor I touched.

    But anyway I won't be using that for now. In case anyone else wants this method then you could just continue posting here. Thanks!
Sign In or Register to comment.