Hey firemaple little bit of help

Billyd1Billyd1 Member Posts: 133
edited November -1 in Working with GS (Mac)
I see you demo here: http://gamesalad.com/game/play/45866

How would I make that move by my finger touch?

Thanks

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    It would probably be best with a virtual joystick or something like that...

    However, if you wanted the car to follow your finger, you could use the Move To Behavior. The X and Y would be game.Touch1.X and game.Touch1.Y

    For the rotation, use Rotate To Angle.

    And to get that angle, use VectorToAngle(game.Touch1.X-self.Position.X,game.Touch1.Y-self.Position.Y)

    That's just off the top of my head though, and I haven't tested it, but something like that should work.
  • Billyd1Billyd1 Member Posts: 133
    firemaplegames said:
    It would probably be best with a virtual joystick or something like that...

    However, if you wanted the car to follow your finger, you could use the Move To Behavior. The X and Y would be game.Touch1.X and game.Touch1.Y

    For the rotation, use Rotate To Angle.

    And to get that angle, use VectorToAngle(game.Touch1.X-self.Position.X,game.Touch1.Y-self.Position.Y)

    That's just off the top of my head though, and I haven't tested it, but something like that should work.

    Any chance you could create a quick demo?
  • mrfunkleberrymrfunkleberry Member Posts: 424
    Blimey Billyd1 he just told you how to do it! Cheeky Monkey
  • Billyd1Billyd1 Member Posts: 133
    mrfunkleberry said:
    Blimey Billyd1 he just told you how to do it! Cheeky Monkey

    Yeh, but im not that experienced with gamesalad yet so I don't really understand some of that.
  • mrfunkleberrymrfunkleberry Member Posts: 424
    Trail and error, search similar topics. It's unfair to ask someone to write your game for you. If you don't understand then i suggest going to through the wiki. I know it can all seem daunting at first, but trust me, it's the best way. This topic is well versed in the forum, and i'd be very surprised there wasn't a template already made. C'mon dude, you'll rock when you figure it out! Good Luck!
  • Billyd1Billyd1 Member Posts: 133
    I been trying to work it out all day but I just cant get it! Maybe ill wait to create my idea when im abit more experienced.
Sign In or Register to comment.