platform + custom movement help

Get help using Construct 2

Post » Sat Oct 06, 2012 3:16 am

I'm a new user to C2 and i love the software btw. I'm working on a side scroller. I want to know what is the best way to achieve my goals. Which is to have custom movement such as double jumps, running, knock backs, etc. Can i combine platform behavior with custom movement? Or should i just use custom entirely? Are there any plat-former examples with just custom movement? I have seen the platform tutorial in the examples folder, that doesn't really help me. Thank you.cosmos100402012-10-06 09:24:28
B
21
Posts: 23
Reputation: 2,429

Post » Sat Oct 06, 2012 3:06 pm

You can do those kind of things by changing the platform behaviors values. Like setting the VectorY value for a double jump, setting VectorX for knockback or sprint. Or for sprint you could temporarily increase the platform acceleration and max speed.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sat Oct 06, 2012 4:30 pm

that sounds interesting i will try that for the sprint and double jump. How do i disable certain buttons , like the arrow buttons for the duration of a animation or move, but still be able to press the Space button for attack. thanks for the replycosmos100402012-10-06 16:33:16
B
21
Posts: 23
Reputation: 2,429

Post » Sat Oct 06, 2012 5:51 pm

The platform behavior has a 'set ignoring input' action that will disable the movement controls
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sun Oct 07, 2012 1:51 pm

thanks for the reply again. i have tried set ignore input action. However, as soon as the input is ignored, if my character is in mid air, their acceleration will halt and they will drop down to the floor. That is not what i intended to to. Is there an easy way to maintain it's current acceleration even after letting go of the keys?
B
21
Posts: 23
Reputation: 2,429

Post » Tue Oct 09, 2012 2:00 pm

Does anybody here know how to maintain acceleration and speed of an player object when no longer touching the arrow keys?
B
21
Posts: 23
Reputation: 2,429

Post » Tue Oct 09, 2012 2:56 pm

Set the platform deceleration to 0. Have a look at this example: http://www.scirra.com/forum/Scripted-jump_topic53705_post335971.html#335971
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Tue Oct 09, 2012 5:19 pm

wow that worked! thanks a lot!
B
21
Posts: 23
Reputation: 2,429


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], DiabloOvermind, emoticon, MrWhizm and 15 guests