How to repeat a movement?

Games4lifeGames4life Member, PRO Posts: 279

Hey all,

At the beginning of the game I want my finger actor to move to the right of the screen and repeat this action. This is almost like a mini tutorial of how to move the main character.

Example
1= The finger
1------>1
repeats
the finger goes back to starting point and repeats
1------>1
1------>

Thanks
~G4L

Comments

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

    Constrain X position to:

    R *cos((( self.Time *S)%180)+180)+C

    R=Range of movement
    S=Speed
    C=Centre of movement

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

    Demo file attached:

  • Games4lifeGames4life Member, PRO Posts: 279

    @Socks said:
    Demo file attached:

    Thanks for your help!

Sign In or Register to comment.