Discuss Scratch

VanillaTheCat
Scratcher
41 posts

"More Times" Script

This might already exsist, I'm not sure. o.o

Anyways, if there was a script like, “if space key pressed 2nd time? -”switch costume to costume5“ ”if space key pressed 6th time? - switch costume to costume9" how does this sound?

Sonickyle
Scratcher
1000+ posts

"More Times" Script

when green flag clicked
set [variable v] to [0]
forever

if <key [space v] pressed?> then
change [variable v] by (1)
if <(variable) = [2]> then
...
end
if <(variable) = [6]> then
...
end
wait until <not <key [space v] pressed?>>

end

end

All it takes is a little of imagination.

No I don't make projects anymore. I left some time ago.
I only check the forums every now and then, but other than that consider me retired.
VanillaTheCat
Scratcher
41 posts

"More Times" Script

OH. Sorry I'm really not smart. xD

firedrake969_test
Scratcher
500+ posts

"More Times" Script

Last edited by firedrake969_test (Jan. 28, 2014 22:30:50)


Alt account of Firedrake969.

Rocket II: A black and white bitmap space game!

I seek not fame, but education.

;

Powered by DjangoBB