Collision problem: moves ever so slightly...

NesesitaGamesNesesitaGames Member Posts: 160
edited November -1 in Working with GS (Mac)
I'm currently working on an endless runner type game, but have run into one big problem: whenever my Hero jumps on a Platform, the Platform moves down. It's a very small movement, but is definitely noticeable.

I've tried setting density on both Hero and Platform extremely high, turned friction on and off, etc- all to no avail.

I wouldn't have this problem if the Platform could be constrained to its Y position- however, because it's an endless level done on one scene, the Platform has to reposition itself in random Y positions every so often.

Any ideas, guys? Please help :)
Thanks

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    you can make the platform non moveable. youll still be able to switch it to a random y position
  • NesesitaGamesNesesitaGames Member Posts: 160
    Hi, John! Do you mean by interpolating it instead of using Move? I tried that but am having trouble getting it to move to a random x and y once it's offscreen.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    To do a random move while off screen you will need to use a change attribute.
Sign In or Register to comment.