barbara Posted October 2, 2018 Share Posted October 2, 2018 Hi, 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 More sharing options...
Milton Posted October 2, 2018 Share Posted October 2, 2018 I guess you could use another not visible object (player), that tests it first. If it collides/overlaps don't allow the setSize of the actual player. Nice graphics Link to comment Share on other sites More sharing options...
barbara Posted October 2, 2018 Author Share Posted October 2, 2018 Worked perfectly! Many thanks! XD Link to comment Share on other sites More sharing options...
samme Posted October 2, 2018 Share Posted October 2, 2018 body.touching.up should show that also. Link to comment Share on other sites More sharing options...
Recommended Posts