How to make my actor stay on a spinning wheel?

EmrikAhlEmrikAhl Member Posts: 15

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.Member Posts: 12,822

    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 Member Posts: 15

    I don't really get what u mean

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

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

    Ok.

  • EmrikAhlEmrikAhl Member Posts: 15

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

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

    @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 Member Posts: 15

    Constrain the actor's X position to

    Radius of the wheel

    that part

  • SocksSocks London, UK.Member Posts: 12,822
    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 Member Posts: 15

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

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

    @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.