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

#1 2011-11-30 19:44:25

MineMaster
Scratcher
Registered: 2011-11-05
Posts: 4

Help Needed with Script!

So usually, the move script I use is like <forever<if right key pressed><change x by 10> or whatever. I'm wondering, how would you make a script so that when you move, you slide a little depending on how fast your going. Like if you go back, and go really fast, your gonna get extra momentum. So can anyone please tell me how to make a script like that?

Offline

 

#2 2011-12-01 01:49:37

anuw
Scratcher
Registered: 2009-04-09
Posts: 50

Re: Help Needed with Script!

Well depends what you mean by 'fast'. If you mean how hard you are pressing the button; unfortunately Scratch does not supply this type of sensing. If you mean the longer you hold it down, the more momentum you build; then yes it is possible using variables. Hang on, I have an old project I'll find..... Here! http://scratch.mit.edu/projects/MrCookie/2148683 . (Use the arrow keys) If this is what you mean, then please download and take a look at the scripts  wink


http://lolwut.com/layout/lolwut.jpg Lolwut?

Offline

 

Board footer