Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Make a ship turn in a cirkel - Help

Hope someone can help with this. I have a ship that follows a push on a touch-screen. The code i use now make it change direction instantly. I would like it to turn like a ship would do.
The code i use now:

self.Rotation To: vectorToAngle( self.Motion.Linear Velocity.X , self.Motion.Linear Velocity.Y )

self.Motion-Linear Velocity.X To: game.Touches.Touch 1.X - self.Position.X

self.Motion-Linear Velocity.Y To: game.Touches.Touch 1.Y - self.Position.Y


My Website:


  • imjustmikeimjustmike Posts: 450Member

    I'm not 100% sure what you mean. Are you saying that when you move your finger don't want the ship to actually go to it's new location, but follow the path your finger traced? There are plenty of follow path tutorials on the forums for that, just do a quick search :)

    Here's one:

    Or are you saying that you simply want a delay on the ship? If that's the case, you could use a move to behaviour instead of constrains. Demo attached.

  • SocksSocks London, UK.Posts: 12,822Member
    edited June 2017

    Here's one approach . . . (file attached)

  • Toke TToke T Posts: 26Member

    Wow! Thanks a lot mate. That was exactly what I was looking for :-)

    My Website:

  • Toke TToke T Posts: 26Member

    Also thanks to you. Good ideas on another direction.

    My Website:

Sign In or Register to comment.