I started to use GDevelop a few days ago. I wanna make a simple game in which you can change the gravity of a player (Sprite) and move it through various platforms.
I added a button that, when i press it, will change the player gravity (for example -100) and add a force to move it up.
I also added a ceiling (Sprite - Platform) to stop the player when it reaches the ceiling from bottom to up.
The problem is that the player stops for a few seconds when hits the ceiling, but then continues to go up throug that platform.
How can I make so when the player goes up (with negative gravity) to stop (to not goes through ceiling) and to can move it horisontally, but to keep the negative gravity so the player can go up when i move it in the left/right margin of the ceiling (platform) and escedes it?
Any tutorial or example?