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

#1 2013-02-15 19:46:35

redazalea
New Scratcher
Registered: 2012-10-11
Posts: 2

What to do when actions glitch?

Hi everyone,

I would deeply, deeply, appreciate if anyone can give me some insight as to what's wrong here.

The way I made it, there are actions with a key on the keyboard so that

UP - jump up
LEFT - walk left
RIGHT - walk right
DOWN - this stretching motion
A - attack (punching motion)
S - spin
D - the sprite's hat comes flying off

And when no other actions are occurring, the action is set to "idle", and her skirt kind of bobs up and down.

Problem is, when I press either the LEFT or RIGHT arrows without letting go, the sprite kind of moves back and forth and glitches for a sec in between walking two cycles.

Also, is there a way to program the "jump up" action so that it's uninterruptible? Right now, it's possible for my sprite to walk (very briefly) in mid air.

Thanks so much!

Here is the project:

http://scratch.mit.edu/projects/redazalea/3107435

Offline

 

#2 2013-02-17 16:16:45

Vinnie232
New Scratcher
Registered: 2013-01-27
Posts: 5

Re: What to do when actions glitch?

your character jerks like that because the animation (which is very well done) switches to a different costume (probably the first of the cycle) that has a center in a different place than the last costume of the cycle:

And putting this

when gf clicked
wait until < (action) = [idle]>
before either of the walking commands will definitely prevent your character from walking in mid air

Offline

 

#3 2013-02-17 16:19:53

Vinnie232
New Scratcher
Registered: 2013-01-27
Posts: 5

Re: What to do when actions glitch?

(ignore the start block) just put the wait until one first after the forever if command for either direction

Offline

 

Board footer