Pages: 1
Topic closed
Please check my project.
http://scratch.mit.edu/projects/redman123/1810674
When jumping, the sprite changes custumes. Now I want to do when jumping if "z" is pressed, the sprite changes jumping custume to jumpkicking custume.
Any ideas ? or similar projects that I can refer to.
Offline
Thanks for answering. However, it didn't work. Looks like it conflicts with other part of the scrpit.
The following is what I added
<when green flag clicked>
if jumping =1 and key "z" pressed
{
switch to costume jumpkick
}
Offline
Set jumping to 2, maybe?
Last edited by scimonster (2011-05-26 06:15:42)
Offline
redman123 wrote:
I mean during the jumpkick , the jumping animation (without kick) appears too.
Therefore, the jumpkick looks weird. How do I stop jumping animation when I do
jumpkicking ?
Umm.... I'm confuzed... Reexplain with more detail?
Offline
I know why it is doing that. I just don't know how to fix it.
I think two parts of the script excute at the same time ( if "key spacebar pressed" and
if " jump = 1 and key x pressed" ).
Both parts of the scrpit have their own costumes. That's why the jumpkick looks wierd.
Offline
Try adding another Varible (maybe Air kick, Jump kick, ECT.) Than on your jump script add
<space(figuring this is your jump script) Key pressed> And <Air Kick = 0>
Than on the air kick script, add Set Air kick to 1 and wait until jump = 0 than under that add set Air kick to 0
Try that, if that dosn't work i have another trick up my sleeve aswell
Offline
Topic closed
Pages: 1