Need help with Platform Movements

Hi Team:
I need some help with platforms movements. Please see this image to understand what I need. Thanks
http://postimg.org/image/663tv1ur3/

  1. I want to make a platform moving like a zigzag. From x point to Y point and return back.
  2. I want to make a platform moving like a circle.
    Please see this image http://postimg.org/image/663tv1ur3/

Thanks for your help.

Comments

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

    1.

    Constrain position.x to AAA *sin(self.time *BBB)+CCC

    Constrain position.y to AAA *sin(self.time *BBB)+CCC

    2

    Constrain position.x to AAA *cos(self.time *BBB)+CCC

    Constrain position.y to AAA *sin(self.time *BBB)+CCC

    . . . . .

    For 1 AAA is the range of movement, for 2 AAA is the radius

    For both BBB is the speed.

    For both CCC is the centre point of the movement.

  • heman85heman85 Member Posts: 36
    edited January 2015

    Im trying right now. Thank You

  • heman85heman85 Member Posts: 36

    Socks... YOU ARE A GENIUS... Working Like a Charm PERFECT THANKSSSSS

  • heman85heman85 Member Posts: 36

    Hey Socks, How can I stick the Player into the Platform? Right now the movement is making drop the player out of the platform. Any suggestion>? Thanks

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

    @heman85 said:
    Hey Socks, How can I stick the Player into the Platform? Right now the movement is making drop the player out of the platform. Any suggestion>? Thanks

    I don't know anything at all about your game, how it is set up, how the player moves, what is controlling the player, whether you are using scene gravity or whether the whole scene flips upside down every 8 seconds, whether the player can fly, is a ball, rolls like a tank or bounces like a little hedgehog . . . basically nothing !

    So, with that in mind, try increasing the value of your game.NormalSpeed2 attribute to 200 and reduce the change velocity behaviour in the Player to 50 :wink:

Sign In or Register to comment.