jump and stick to ceiling, any idea ?

Get help using Construct 2

Post » Sat Jun 16, 2012 10:07 am

Hi all !

Anyone knows how to jump and stick to ceiling including moving left to right on ceiling (floor >> jump to ceiling) ??


thanks !
B
11
G
1
Posts: 41
Reputation: 1,107

Post » Sat Jun 16, 2012 10:15 am

One way of doing it that I know, is to have an invisible sprite that detects collision with the ceiling sprites. Once collision is detected, then it triggers "a Stick to ceiling " control group that overrides the usual movement.

Hope that makes sense.
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sat Jun 16, 2012 10:27 am

Hi Yung,

Hum, do you think you could have a capx to see with my eyes the logic behind it ?
B
11
G
1
Posts: 41
Reputation: 1,107

Post » Sat Jun 16, 2012 12:14 pm

i don't know but i think this is a good tutorial for what you need if you didn't understand it you can ask :
http://www.scirra.com/tutorials/273/how-to-make-a-gravity-based-platformer
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Sat Jun 16, 2012 4:05 pm

How about inverting gravity when you want to stick to the ceiling, and putting it back when you want to fall off?
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Sat Jun 16, 2012 7:27 pm

odesign: here's a rough capx to illustrate my idea. Hope it helps.
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sat Jun 16, 2012 9:34 pm

@Ashley , what about if he want to stick to left,right wall
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Sun Jun 17, 2012 4:55 am

Yung, your capx is exactly what i need, i understand the logic now. So much thanks again, very professional !!! Zsangerous and Ashley, thanks to you too guys. Its very helpful to have guys around here for help.

thanks again
B
11
G
1
Posts: 41
Reputation: 1,107

Post » Sun Jun 17, 2012 6:21 am

Glad I could help. Mind you it's very rough but hope it shows the idea :D
B
27
S
9
G
5
Posts: 108
Reputation: 5,744

Post » Sun Jun 17, 2012 12:41 pm

i saw this example maybe you will need it :
https://dl.dropbox.com/u/78257325/ForumHelp/platformer_inversion.capx

its from : RandomHero
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Next

Return to How do I....?

Who is online

Users browsing this forum: davides, Walessio and 25 guests