GameSalad

Howdy, Stranger!

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

How to make my actor stay on a spinning wheel?

EmrikAhlEmrikAhl Posts: 15Member

How to make my actor stay on a spinning wheel like this http://games.uf3.com/cdn/279/22/606gamezat-games.jpg

Comments

  • SocksSocks London, UK.Posts: 12,822Member

    Constrain the actor's X position to

    Radius of the wheel * cos (wheel rotation) + x position of the wheel

    Constrain the actor's Y position to

    Radius of the wheel * sin (wheel rotation) + y position of the wheel

  • EmrikAhlEmrikAhl Posts: 15Member

    I don't really get what u mean

  • SocksSocks London, UK.Posts: 12,822Member

    @EmrikAhl said:
    I don't really get what u mean

    Ok.

  • EmrikAhlEmrikAhl Posts: 15Member

    Can you please try to explain again? but a little bit more so I understand, sorry im pretty new using gamesalad.

  • SocksSocks London, UK.Posts: 12,822Member

    @EmrikAhl said:
    Can you please try to explain again? but a little bit more so I understand, sorry im pretty new using gamesalad.

    Can you say which part you don't understand ?

  • EmrikAhlEmrikAhl Posts: 15Member

    Constrain the actor's X position to

    Radius of the wheel

    that part

  • SocksSocks London, UK.Posts: 12,822Member
    edited May 2015

    @EmrikAhl said:
    Constrain the actor's X position to

    Radius of the wheel

    that part

    The radius of the wheel simply means the distance from the centre of the wheel to the edge (half the width of the actor).

  • EmrikAhlEmrikAhl Posts: 15Member

    I know what the radius is, but how do I Constrain the actor's X

  • SocksSocks London, UK.Posts: 12,822Member

    @EmrikAhl said:
    I know what the radius is, but how do I Constrain the actor's X

    You use a Constrain behaviour.

Sign In or Register to comment.