how to constrain a (coin) actor to a moving platform

Simple AppsSimple Apps Member Posts: 158

Hi every one .
i made an endless runner type game and i'm struck with the coins.
https://www.dropbox.com/s/fb2ir2lbkyvguof/coin problem.mov?dl=0
i want to constrain some coins (which are in red color in the above video) to the platforms
i tried constraining (coin)actor x and y positions to platform x,y+30 position.due to that the (coin) actor first constrain to one platform and another and goes on changing platforms.

if any one knows please help me.
Thank You

Comments

  • Simple AppsSimple Apps Member Posts: 158
    edited November 2014

    ?/

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Instead of using a constrain, I would just have each of your platforms spawn a coin and then have that coin move at the same speed the platform is moving. Then it will seem to be constrained and just sitting on the platform waiting to be picked up by the player.

  • Simple AppsSimple Apps Member Posts: 158

    Thank U @ jamie_c

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You're welcome :)

Sign In or Register to comment.