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

#1 2011-11-08 13:19:06

ShotgunSam
Scratcher
Registered: 2011-07-25
Posts: 100+

a script for smoth movements and jumping

can anyone help me make one
the script i have just makes everything move 1 step towards whatever key is being held down
thats not relly smooth like a normal platformers movements shold be
and i looked at a few tuterial;s but i dont want any velosity in the scripts


http://i.imgur.com/IpgToSV.png

Offline

 

#2 2011-11-08 13:21:04

Dawgles
Scratcher
Registered: 2011-07-29
Posts: 100+

Re: a script for smoth movements and jumping

I would love to help you, but I only know how to do this with velocity. Sorry.

Offline

 

#3 2011-11-08 13:22:12

ShotgunSam
Scratcher
Registered: 2011-07-25
Posts: 100+

Re: a script for smoth movements and jumping

but the thing i wanna make needs to have an constant speed thats why i dont want velosity


http://i.imgur.com/IpgToSV.png

Offline

 

#4 2011-11-08 13:34:37

Andres-Vander
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: a script for smoth movements and jumping

Uh, just use move x steps in direction whatever if you want a constant motion


http://www.gifsoup.com/view1/2260823/flugelhorn-feline-o.gif

Offline

 

#5 2011-11-08 13:34:38

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: a script for smoth movements and jumping

Instead of

When right arrow pressed
Change x by 5

Put

When green flag clicked
Forever
If key right arrow pressed
Change x by 5
End if
End forever

Also, could you upload the project, so we can see the scripts?


Why

Offline

 

Board footer