Platform Gravity

Get help using Construct 2

Post » Sun Jun 17, 2012 4:57 am

I want to make it so when the player presses 'Z' their gravity becomes negative and they will walk on the ceiling. Can I do it that way, or do I have to rotate the screen?
B
8
S
3
G
2
Posts: 22
Reputation: 2,028

Post » Sun Jun 17, 2012 5:02 am

You should be able to. Just use the "set gravity" action on your player. Set it up so when you press the z key, you set the gravity to a negative number.

You will probably need some invisible sprites to act as walls on top of the screen so your character can stop and walk on the ceiling.
B
12
S
2
Posts: 41
Reputation: 1,553

Post » Sun Jun 17, 2012 5:06 am

Thank you :D I havent used the Platform behavior before and am just figuring it out now :P
B
8
S
3
G
2
Posts: 22
Reputation: 2,028

Post » Sun Jun 17, 2012 5:17 am

Here's a .capx show what I said above

https://dl.dropbox.com/u/78257325/ForumHelp/platformer_inversion.capx
B
12
S
2
Posts: 41
Reputation: 1,553

Post » Sun Jun 17, 2012 5:17 am

Not a problem
B
12
S
2
Posts: 41
Reputation: 1,553


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests