"Key is pressed" error?

For questions about using Classic.

Post » Fri Sep 26, 2008 12:51 am

Trigger once wasn't working for me when I tried it, either at the top or bottom. Unless you're thinking something different.
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Fri Sep 26, 2008 12:54 am

It works on my machine.

Key space is down
Trigger once
Sprite: Rotate 10 degrees clockwise
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Fri Sep 26, 2008 12:58 am

[quote="Arima":22ltdvk4]It works on my machine.

Key space is down
Trigger once
Sprite: Rotate 10 degrees clockwise[/quote:22ltdvk4]

Put another event right after it that says

Key space is down
Trigger once
Sprite: Rotate 10 degrees counter-clockwise

It won't work. Trigger once is specific to the event it's in, not what type of event is occurring. So if you have two "Space is down, trigger once" events in a row, it will trigger them both... once.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Fri Sep 26, 2008 12:58 am

It works in that case, but doesn't for the numbers it seems.

deadeye beat me!
B
2
S
2
G
5
Posts: 391
Reputation: 2,432

Post » Fri Sep 26, 2008 8:19 am

I finally solved it!

It took me hours to get it right.
I hope this helps anybody who is having problems with this.

http://www.fileshack.us/get_file.php?id ... nuTest.cap

[size=50:eijjs2go]Tags for forum search: game menu, sub-menu[/size:eijjs2go]
B
2
S
1
G
4
Posts: 92
Reputation: 1,384

Post » Tue Sep 30, 2008 6:20 pm

i was trying to work out a bug in my game and am now convinced it's related to this problem and even my implementation of a fix. so i'll be trying to utilize 'ELSE', as described by ashley -- i'll report back if it helped or not.

this behavior might not be a bug, but it's looking like a slippery slope to avoid -- and there's no real way of knowning to avoid it coming in.

edit: well, my problem doesn't seem to be related to this (i couldn't fix it, and i forgot i'd already done a more direct way of troubleshooting my bug...), so i'll probably create a new thread later. but i did find the beauty of sub-events :P
B
2
S
2
G
4
Posts: 254
Reputation: 1,958

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 5 guests