Jump to content

change setSize only if possible


Recommended Posts


I'm making a platform game, i have a player that can bend himself so it can go throw an obstacle that is placed in a low position. The problem is that if the player stops in the middle of this obstacle it goes up again and appears through the object. I want it to go up only if there's no obstacle that collides with it, but i'm out of ideas, i don't know how to do it. 

My player in anchor is set to (0.5 , 1), and then i change the setSize property when it bends and again when it goes up so the collision size changes. Any ideas? Thanks!


Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...