Keyboard error

Get help using Construct 2

Post » Wed Apr 03, 2013 9:56 am

I'm trying to set my game to also work with a gamepad, and while this works fine with the gamepad, after switching 70% of the "on keyboard" events to "on keyboard code -OR- on gamepad index", I'm getting the following error when pressing ANY button on the keyboard.



I'm stumped. Anyone have any ideas?

ome6a17172013-04-03 10:05:28
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Wed Apr 03, 2013 10:19 am

The error message suggest that you have a trigger (event with little green arrow) as sub event of a loop. Like it says, that is not allowed :)

Without seeing the .capx, you need to move the conflicting event(s) away from loop of any kind.
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Wed Apr 03, 2013 10:22 am

Figured it out - can't have a "For Each <SPRITE> above a key press/button press :)
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Wed Apr 03, 2013 10:23 am

Ah you beat me to it. Thanks, Vee!
B
22
S
3
Posts: 451
Reputation: 2,135


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 31 guests