Pages: 1
Topic closed
I'm currently animating a figure which walks up, left, right, and left. He has a gun and I want him to change costumes when he fires (space bar) so that if he's pointed left and fires he changes to a costume which shows him firing left. When he's firing down he changes costumes so that he looks like he's firing down. I wish there was an "If"command which was based on direction (IE If pointed right and key-spacebar, wait 0, switch costume [fire right] wait .1, switch costume [face right]. Does this make any sense?
Offline
check out this simple script http://scratch.mit.edu/projects/paulmedwalhelp/8890
Obviously, you need to use the "change costume" block instead of using the "say" block.
Paulmedwal
Last edited by paulmedwal (2007-06-04 21:46:19)
Offline
I'm not sure what the Say command has to do with it
Offline
Where the "say" block is is where you need to put the "wait 0, switch costume [fire right] wait .1, switch costume [face right]" or whatever code you want to use when the space is pressed.
Paulmedwal
Last edited by paulmedwal (2007-06-04 21:48:14)
Offline
Thanks a bunch! It totally worked! I'll put upload it in a bit!
Offline
Topic closed
Pages: 1