Hi all !
Anyone knows how to jump and stick to ceiling including moving left to right on ceiling (floor >> jump to ceiling) ??
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.
Hum, do you think you could have a capx to see with my eyes the logic behind it ?
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 :
How about inverting gravity when you want to stick to the ceiling, and putting it back when you want to fall off?
odesign: here's a rough capx to illustrate my idea. Hope it helps.
Develop games in your browser. Powerful, performant & highly capable.
Ashley , what about if he want to stick to left,right wall
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.
Glad I could help. Mind you it's very rough but hope it shows the idea :D
i saw this example maybe you will need it :
its from : RandomHero
zsangerous, good point, thanks !
Yung, i have a question regarding your capx. I tried many way that when your black sprite touch the green ceiling, it "start animation" (stop on untouch). but it really doest work. Actually, the sprite animate all time, not only when it touch the ceiling, any idea ??
thanks again !!