Discuss Scratch

123chespen
Scratcher
52 posts

My games costumes are being skipped-why?

My browser / operating system: Windows NT 10.0, Chrome 63.0.3239.132, Flash 28.0 (release 0)

My game has a sprite with text when the Professor talks, it has 3 costumes but whenever I press the key to go to the next costume starting on the first, it always seems to skip the second costume and jump straight into the third. Link to my game: https://scratch.mit.edu/projects/203034076/

The script:
when green flag clicked
 forever
if <key [x v] pressed?> then
next costume
end
end

Last edited by 123chespen (Feb. 9, 2018 17:41:01)



I occasionally create games on scratch, but most of my projects are consisting of pixilart, which usually takes up the majority of my effort, rather then gameplay. If you would like to see more of my pixilart, go here.
asivi
Scratcher
1000+ posts

My games costumes are being skipped-why?

123chespen wrote:

My browser / operating system: Windows NT 10.0, Chrome 63.0.3239.132, Flash 28.0 (release 0)

My game has a sprite with text when the Professor talks, it has 3 costumes but whenever I press the key to go to the next costume starting on the first, it always seems to skip the second costume and jump straight into the third. Link to my game: https://scratch.mit.edu/projects/203034076/

The script:
when green flag clicked
forever
if <key [x v] pressed?> then
next costume
wait until <not <key [x v] pressed?>>//You need this block
end
end
123chespen
Scratcher
52 posts

My games costumes are being skipped-why?

Thank you so much!


I occasionally create games on scratch, but most of my projects are consisting of pixilart, which usually takes up the majority of my effort, rather then gameplay. If you would like to see more of my pixilart, go here.
robloxbaysah
Scratcher
11 posts

My games costumes are being skipped-why?

I have the same problem but that wont work bc u dont press a key to click it
robloxbaysah
Scratcher
11 posts

My games costumes are being skipped-why?

I have the same problem but that wont work bc u dont press a key to click it
Harakou
Scratcher
1000+ posts

My games costumes are being skipped-why?

robloxbaysah wrote:

I have the same problem but that wont work bc u dont press a key to click it
This sounds like a programming problem. Please make a new thread in Help With Scripts instead of bumping an old Bug thread.

Powered by DjangoBB