How does set control state work?

For questions about using Classic.

Post » Thu Sep 09, 2010 10:17 pm

How does the set control state action of the keyboard object work?

I'm trying to disable jump key by using this code.

start of layout
- set control "Jump" of player 1 to 0

but when the jump key still works.

please help me!!!
B
10
S
4
G
6
Posts: 76
Reputation: 3,615

Post » Thu Sep 09, 2010 10:26 pm

you're setting the control state to that for the first tick at the start of layout
for the sake of understanding, you would need to
--always
------set control state to 0;
after you set the control state it doesn't stay that way, it continues to be set every tick by the assigned controls being pressed, or being left alone

however, this would be better achieved, by disabling the jump control
click on an empty part of layout to bring up the layout properties
click properties and scroll to the bottom
find the jump control, and at the bottom of the list of possible keys is (disabled)
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Thu Sep 09, 2010 10:30 pm

thanks that worked!
B
10
S
4
G
6
Posts: 76
Reputation: 3,615


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests