How do I have player walk on cieling

Get help using Construct 2

Post » Mon Aug 11, 2014 5:01 pm

I have been stuck on this one for a while ,

Let's say a sprite(ceiling) is over your head and you want to walk on it by pressings let's say the jump button so basically you are walking on a ceiling

My question ;

How can I do that and have the player land feet first on the cieling and can change from cieling to floor whenever .

How do I make this so only when the player is above cieling you can walk on it .

Posts: 35
Reputation: 1,090

Post » Mon Aug 11, 2014 6:20 pm

Valerien has good solution for this kind of situation:
Posts: 811
Reputation: 24,590

Post » Tue Aug 12, 2014 9:11 am

Hi. I made you an example. If you like it, just replace the sprite of the pigeon with yours.

In this example I make the character flip and rotate once he has reached at certain height. If the character touches the ceiling platform, it will change his gravity from "100" to "-100". So basically negative gravity. If he jumps back down and touches the bottom, he will go back to normal gravity.

Important thing to note is that the character has been rotated to the right by 90 degrees. In order to do so, double click your character and window appears. In the menu at the top click on the rotate 90-right button. I did that so that he would make a flip and land on his feet.

The other important thing is that he has to touch the ceiling or the floor to trigger the gravity/anti-gravity. I have tried to make it change midair but he just gets stuck in limbo. Maybe you will find a way to modify the intensity at which the character jumps. That way you could press jump and he just jumps or you hold jump and he flips around and binds to the ceiling. I couldn't figure out how to do it. This is the first time I ever did anything platformer related. LOL.

I hope this helps. If you need more help, feel free to ask and like this comment if it helps or whatever. I need some points. :lol:
You do not have the required permissions to view the files attached to this post.
Posts: 6
Reputation: 375

Return to How do I....?

Who is online

Users browsing this forum: EVAPilot, Iftikhar555 and 14 guests