Search

Thursday, July 30, 2020

Making Scratch Projects :: Help With Scripts :: Lightsaber Costumes

BridgeCreek : Hi!
I'm making a platformer, and I'm having some trouble. During one part of the game, you get a lightsaber. When you press Z it's supposed to switch to the slash costume, wait one second, and then switch back to the first costume. All it does is switch to the slash costume.This is the code for the lightsaber:

when green flag clicked
show
switch costume to [ straight_saber]
forever
if <key [ z] pressed?> then
switch costume to [ slash]
wait (1) secs
switch costume to [ straight_saber]
end
end
Please help!

from Latest posts on Help With Scripts https://ift.tt/2P90EuW

No comments:

Post a Comment