How do I cancel/stop platform jumping before deceleration ?

Get help using Construct 2

Post » Mon Nov 03, 2014 9:27 pm

I am trying to stop an object with platform jumping from continuing accelerating after being hit.

How do I cancel/stop platform jumping before deceleration ?
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Tue Nov 04, 2014 12:05 am

Do you mean stop from moving?
If so, you can make the object time scale to 0.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Tue Nov 04, 2014 12:19 am

A0Nasser wrote:Do you mean stop from moving?
If so, you can make the object time scale to 0.

No ... I want to stop the object from jumping and immediately fall down.
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Tue Nov 04, 2014 12:44 am

Change its fall speed for a short lapse of time perhaps?
B
43
S
12
G
14
Posts: 488
Reputation: 10,570

Post » Tue Nov 04, 2014 12:07 pm

You can use instance variable for that.
When hit set variable to true.
variable true - set max fall speed to xxx.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Tue Nov 04, 2014 6:35 pm

Why not just set the platform X & Y vectors to 0.

Gravity will take over and your character will just fall to the ground. No need for a variable or timers. Or am I missing something?
B
46
S
23
G
7
Posts: 459
Reputation: 6,763

Post » Tue Nov 04, 2014 7:23 pm

Minor wrote:Why not just set the platform X & Y vectors to 0.

Gravity will take over and your character will just fall to the ground. No need for a variable or timers. Or am I missing something?

Thanks, this is what I needed :D
B
49
S
15
G
6
Posts: 534
Reputation: 7,195


Return to How do I....?

Who is online

Users browsing this forum: Fradno, MathNook and 37 guests