This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-05-26 05:43:38

redman123
New Scratcher
Registered: 2011-05-18
Posts: 18

Need help with adding one move(jumpkick) into the sprite !

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

 

#2 2011-05-26 05:52:34

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: Need help with adding one move(jumpkick) into the sprite !

Ok, so on your Script, this is, Try it.

http://i.imgur.com/LEkfL.gif


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#3 2011-05-26 06:07:01

redman123
New Scratcher
Registered: 2011-05-18
Posts: 18

Re: Need help with adding one move(jumpkick) into the sprite !

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

 

#4 2011-05-26 06:13:23

redman123
New Scratcher
Registered: 2011-05-18
Posts: 18

Re: Need help with adding one move(jumpkick) into the sprite !

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 ?

Offline

 

#5 2011-05-26 06:15:12

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Need help with adding one move(jumpkick) into the sprite !

Set jumping to 2, maybe?

Last edited by scimonster (2011-05-26 06:15:42)

Offline

 

#6 2011-05-26 06:20:22

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: Need help with adding one move(jumpkick) into the sprite !

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?


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#7 2011-05-26 06:20:24

redman123
New Scratcher
Registered: 2011-05-18
Posts: 18

Re: Need help with adding one move(jumpkick) into the sprite !

http://scratch.mit.edu/projects/redman123/1813541

Please check the latest one.
wierd jumpkick !

Offline

 

#8 2011-05-26 06:24:01

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: Need help with adding one move(jumpkick) into the sprite !

Hmm, Now i'm very confuzed, dont know why its doing that?

I'll see if i can fix tmoz morning

Last edited by Matty3414 (2011-05-26 06:34:11)


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#9 2011-05-26 06:36:24

redman123
New Scratcher
Registered: 2011-05-18
Posts: 18

Re: Need help with adding one move(jumpkick) into the sprite !

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

 

#10 2011-05-26 06:44:01

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: Need help with adding one move(jumpkick) into the sprite !

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


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

#11 2011-05-26 11:09:59

redman123
New Scratcher
Registered: 2011-05-18
Posts: 18

Re: Need help with adding one move(jumpkick) into the sprite !

Thanks for the hlep --> Matty3414
I finally managed to fix it. !

http://scratch.mit.edu/projects/redman123/1813541

Offline

 

#12 2011-05-26 17:51:34

Matty3414
Scratcher
Registered: 2011-04-09
Posts: 100+

Re: Need help with adding one move(jumpkick) into the sprite !

Ok, you're welcome!


http://i.imgur.com/i87ba.pngDesigner - Photoshop, C4D

Offline

 

Board footer