Controller VS Keyboard behavior not similar

Bugs will be moved here once resolved.

Post » Sun Apr 24, 2016 8:03 pm

Message: jokerdeus can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Problem Description
The controller behavior and the keyboard behavior are not behaving the same way to trigger a "on pressed" event.
The controller will trigger the event the following tick where the button has been pressed.
The keyboard will trigger the event at the same tick where the button has been pressed.

Attach a Capx
https://we.tl/fSh5LLTTM0

Description of Capx
switch the animation of the sprite with keyboard or controller to compare. Launch in debug mode to make it tick by tick.

Steps to Reproduce Bug
step 1
create 1 sprite with 2 animations :
step 2
on gamepad button pressed :
IF sprite animation = A, set to B
ELSE set to A

on keyboard button pressed :
IF sprite animation = A, set to B
ELSE set to A

Observed Result
The event is not triggered during the same tick depending of which behavior is used

Expected Result
Both behaviors keyboard and controllers should trigger during the same tick

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Windows 10

Construct 2 Version ID
227
B
9
S
1
Posts: 60
Reputation: 611

Post » Sun Apr 24, 2016 11:25 pm

Message: jokerdeus can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
Actually @Ashley and @R0j0hound answered this already in this topic : bullet-spawning-from-non-existent-offset-due-to-speed_p913723?#p913723

I wonder if something couldn't be made in the software to give a clue about that difference that can be very important. Maybe a different color for the arrow icon for trigger conditions that are "fake triggers" ?
B
9
S
1
Posts: 60
Reputation: 611

Post » Wed May 04, 2016 12:28 pm

Closing as won't fix (and closing the other issue too): this basically comes down to the fact the gamepad API in the browser doesn't trigger events in the same way keyboard events do. The browser API should be updated, and hopefully it will soon...
Scirra Founder
B
397
S
236
G
88
Posts: 24,422
Reputation: 194,558


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests