Sprite keeps floating instead of touching the ground.

chongyunxiang

  • Posts: 216
Hi,

I created my own sprite for my game. Previously I was using Mambo and was able to touch the ground and jump onto platforms. But after I replaced Mambo with my own sprite, my character keeps floating a fixed distance above the ground and platforms.

I resized the sprite to take on Mambo's size, and even check the collision. Where did I go wrong?

Thanks

TheIndieStation

  • *
  • Posts: 2261
Can you show us a screenshot of the collision models? Keep in mind that each animation has another collision model. Perhaps that is where you made a mistake?

chongyunxiang

  • Posts: 216
I am currently trying to fix the "Walk" animation and this is the collision that I have. I placed the actor on the ground, but it keeps floating up.

Thanks

TheIndieStation

  • *
  • Posts: 2261
Did you set gravity to your scene? If that is the case, make sure your actor is affected by gravity!

chongyunxiang

  • Posts: 216
I got the problem solved! Turns out, I had to close and open Stencyl for it to reload my game. Not sure why, but it fixed the problem. Hopefully it won't happen again!

Thanks!