Platform - On Stopped doesn't trigger after jump

Bugs will be moved here once resolved.

Post » Thu Sep 26, 2013 4:16 pm

Hey,
platform On stopped won't trigger if I jump after moved, and then leave the right/left key in mid-air and then land on a platform.
I'm using a "PlayerBox"(rectangle) for the platform behavior, and "Player" sprite for the animations "by the book".

I've used the Platformer template provided by construct2, i've just inserted my own character to the template.

Link to .capx file (required!):
https://www.dropbox.com/s/ldfb7vf2dkydc0x/Grock.capx

Steps to reproduce:
1. stand on any platform.
2. press right/left to move.
3. while moving press jump.
4. in mid-air leave the right/left key.
5. land on a platform.

Observed result:
Platform - On stopped doesn't trigger and "Walk" animation still playing.

Expected result:
Platform - On stopped triggers and "Idle" animation should play.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 7 64 bit

Construct 2 version:
Release 139 (64-bit)oronbz2013-09-26 16:31:34
B
7
S
2
G
1
Posts: 12
Reputation: 1,143

Post » Thu Sep 26, 2013 5:08 pm

I've added on-landed events like the platformer tutorials said:



It fixed the issue,

I guess "On-Stopped" won't trigger on mid-air by design than
B
7
S
2
G
1
Posts: 12
Reputation: 1,143

Post » Fri Sep 27, 2013 12:52 pm

Can't reproduce in r145.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Fri Sep 27, 2013 6:17 pm

[QUOTE=Ashley] Can't reproduce in r145.[/QUOTE]
@Ashley

Hey Ashley, thanks for your reply,
as I mentioned, i've added those events to fix the issue:


If you'll remove them you'll reproduce it.
B
7
S
2
G
1
Posts: 12
Reputation: 1,143

Post » Sat Sep 28, 2013 1:28 pm

It's still by design. Handling 'On landed' is the correct way to solve this.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests