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

#1 2012-06-04 18:43:07

fetzer
Scratcher
Registered: 2009-06-11
Posts: 70

Smooth walking

My walking is kind of choppy, instead of smooth like gliding, how do i make it smooth, plus how do i make it where you can jump AND move left/right at same time?

Offline

 

#2 2012-06-04 18:45:37

Calculators
New Scratcher
Registered: 2012-05-30
Posts: 6

Re: Smooth walking

You could use the repeat until script to make it less choppy and the jump script has to be seperate from movement script to jump and move at the same time.

Offline

 

#3 2012-06-04 21:36:03

fetzer
Scratcher
Registered: 2009-06-11
Posts: 70

Re: Smooth walking

it is

Offline

 

#4 2012-06-04 21:37:55

ftf841
Scratcher
Registered: 2012-02-19
Posts: 1000+

Re: Smooth walking

do this

when gf clicked
forever
if <key [something v] pressed ?>
movement script goes here
end

Last edited by ftf841 (2012-06-04 21:38:52)


http://mag.racked.eu/cimage/i9002/Achievement++get%21/Hi+there./mca.png
http://mag.racked.eu/mcimage/i354/Achievement++get%21/CAKE%21%21%21%21%21/mca.png

Offline

 

#5 2012-06-04 21:43:50

fetzer
Scratcher
Registered: 2009-06-11
Posts: 70

Re: Smooth walking

nah then when i let go it keeps going, by the way how do i make something solid, for instance, i did it where if you touch blue then you go up 5 steps until your not touching it any more, well, when you jump into the side of it you shoot up, basicly avoiding the jump, and just jumping into the wall, how do i make it solid?

P.S i fixed jumping and walking smooth thing

Offline

 

#6 2012-06-05 02:41:50

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Smooth walking

when gf clicked
forever
if <key [left arrow v] pressed ?>
change x by [-10]
end
if <key [right arrow v] pressed ?>
change x by [10]
end
it might be necessary to make this a seperate script

when gf clicked
forever
if <key [up arrow v] pressed ?>
jump script
Your jump script depends on whether you use Y-Velocity or not.

you replied as I wrote this  smile

Last edited by PhirripSyrrip (2012-06-05 02:43:37)


http://i46.tinypic.com/ao03lk.png

Offline

 

Board footer