C2: bug on key released with 2 keys pressed

Bugs will be moved here once resolved.

Post » Tue Oct 18, 2011 12:25 pm

Hi Everybody,

I just noticed that when I Press 2 keys And I released one , then the released animation is active and the player goes to the direction.

Example:
C2 example Space Blaster game

Condition
If you press Left And Right simultaneously and then release Right >>
The space ship is going Left but with the Defaut animation and not the left animation.

For this game difference is quite not visible but in platform you don't want the player to do some bizarre moonwalk and just slide on the ground.

Tried on Chrome + Firefox

Sorry if it has been said already
B
15
S
6
G
2
Posts: 34
Reputation: 2,122

Post » Wed Oct 19, 2011 11:04 am

Hi me again,

Just to say that to prevent the above issue you can just add the following condition

Example
On key released Right Arrow
+ On Key down Left Arrow   

Then
Set animation to PlayerLeftAnimation !

As a consequence am not sure it is a bug but I am surprised Scirra left it in the Space blaster game (released on Chrome) so it's more a game bug

Cheers :)

Ketoulou2011-10-19 11:05:33
B
15
S
6
G
2
Posts: 34
Reputation: 2,122

Post » Tue May 07, 2013 6:50 pm

Hi Ketoulou,

I have the same issue that you describe in your first post.
I tried your solution but does not work.

Construct version: Release 126 (64bits)

Steps:

1) Press Right arrow
2) Press Left arrow without release the Right key
3) Release Left without release the Right key

Then the player is going right but with the left animation.

How can fix this behavior?

Example https://www.dropbox.com/s/0er5oqvyuavk5kr/Test.capx?v=0mcng

Thank.
B
3
Posts: 5
Reputation: 185


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests