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

#1 2011-02-13 11:21:30

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Some basic scripts

Here, this is split into chapters. This is for new scratchers, to learn how to use basic scripts.

Click on of the links below to get started.

Basic arrow key movement

Velocity

Last edited by owetre18 (2011-02-13 11:32:07)

Offline

 

#2 2011-02-13 11:22:44

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

Re: Some basic scripts

learn HOW to

Offline

 

#3 2011-02-13 11:24:07

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: Some basic scripts

Basic arrow key movement

Here you can make a sprite move with the arrow keys.

Here is the script.

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

You need to make a variable called "Speed" and you can change that to change the speed of the sprite. Don't set it to below 0, the arrow keys will be backwards. And don't set it to 0, or the sprite will not move.

Offline

 

#4 2011-02-13 11:27:15

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

Re: Some basic scripts

Instead of (join [-](speed) ) do ( (speed) * (-1) ).

Offline

 

#5 2011-02-13 11:31:22

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: Some basic scripts

Velocity

Velocity will speed up the character after the arrow keys being held down. The script looks like this.

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

Offline

 

#6 2011-02-13 11:32:42

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: Some basic scripts

scimonster wrote:

Instead of (join [-](speed) ) do ( (speed) * (-1) ).

I got it, I am pretty good with scratch.

Offline

 

#7 2011-02-13 11:37:10

Stickman704
Scratcher
Registered: 2009-01-31
Posts: 1000+

Re: Some basic scripts

I think I have a youtube video on how to make a maze game somewhere...

Mute the sound if you wish  tongue

http://www.scratch.mit.edu/ext/youtube/?v=NcFL42Ow0d4


Dun dun dun dun dun dun.... dun dun dun dun dun dun...  tongue

Offline

 

#8 2011-02-13 12:09:53

Minionsman
Scratcher
Registered: 2011-02-06
Posts: 5

Re: Some basic scripts

<stop all sounds><play sound[ ((  <*>  ))((  </>  ))<think[  ]for(  )secs><think[

Offline

 

#9 2011-02-13 12:31:12

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Some basic scripts

Wouldn't that be "0-___", not join - and ____?

Offline

 

#10 2011-02-13 12:51:38

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

Re: Some basic scripts

owetre18 wrote:

scimonster wrote:

Instead of (join [-](speed) ) do ( (speed) * (-1) ).

I got it, I am pretty good with scratch.

What if it is already negative? Then it is something like --3, which isn't anything.

Offline

 

#11 2011-02-13 13:00:40

owetre18
Scratcher
Registered: 2009-07-01
Posts: 1000+

Re: Some basic scripts

scimonster wrote:

owetre18 wrote:

scimonster wrote:

Instead of (join [-](speed) ) do ( (speed) * (-1) ).

I got it, I am pretty good with scratch.

What if it is already negative? Then it is something like --3, which isn't anything.

Did you read the post, or just look at the pictures. I put notes.

Offline

 

#12 2011-02-13 13:01:46

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

Re: Some basic scripts

owetre18 wrote:

scimonster wrote:

owetre18 wrote:


I got it, I am pretty good with scratch.

What if it is already negative? Then it is something like --3, which isn't anything.

Did you read the post, or just look at the pictures. I put notes.

I read the post, but it is still better the other way.  neutral

Offline

 

Board footer