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

#1 2008-08-22 17:37:17

thewilddingo
Scratcher
Registered: 2008-08-17
Posts: 100+

Basic and Advanced Moving For New Memebrs

Basic Movement

Ok just make a sprite (i.e sprite 1)
To get him to move you can use these scripts::

<when[ right arrow ]key pressed>
<change x by( _____

or

<when[ left arrow ]key pressed>
<change x by( -____

FOr more advanced Versions it might look like this ::

<when green flag clicked><forever><if><key[ right arrow ]pressed?><change{ velocityx }by( ____<set x to( <{ velocity x }><if><key[ left arrow ]pressed?><change{ velocityx }by( -___<set x to( <{ velocity x }>

Last edited by thewilddingo (2008-08-22 17:37:51)


http://scratch.mit.edu/projects/MrTeacher/479638
interesting..ima view it

Offline

 

#2 2008-08-22 17:39:05

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Basic and Advanced Moving For New Memebrs

thewilddingo wrote:

Basic Movement

Ok just make a sprite (i.e sprite 1)
To get him to move you can use these scripts::

<when[ right arrow ]key pressed>
<change x by( _____

or

<when[ left arrow ]key pressed>
<change x by( -____

FOr more advanced Versions it might look like this ::

<when green flag clicked>
<forever>
<if><key[ right arrow ]pressed?>
<change{ velocityx }by( 1
<end>
<if><key[ left arrow ]pressed?>
<change{ velocityx }by( -1
<end>
<change x by( <{ velocity x }>

Easier to read now

Last edited by Bluestribute (2008-08-22 17:39:41)


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-08-23 00:11:20

mletreat
Scratcher
Registered: 2008-05-01
Posts: 100+

Re: Basic and Advanced Moving For New Memebrs

Thanks for sharing with our new Scratchers...do you have any projects you could share that demonstrate this?

Offline

 

#4 2008-08-23 11:09:55

thewilddingo
Scratcher
Registered: 2008-08-17
Posts: 100+

Re: Basic and Advanced Moving For New Memebrs

mletreat wrote:

Thanks for sharing with our new Scratchers...do you have any projects you could share that demonstrate this?

NOT at the moment


http://scratch.mit.edu/projects/MrTeacher/479638
interesting..ima view it

Offline

 

#5 2008-08-23 11:54:29

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Basic and Advanced Moving For New Memebrs

Offline

 

#6 2008-08-23 15:00:46

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Basic and Advanced Moving For New Memebrs

If you want basic jumping you could have 2 scripts the first would be.

When green flag pressed
forever
repeat until
touching colour (choose)
change Y by -1,2,3 etc

The second

When green flag pressed
forever
if up pressed and touching colour (choose)
Repeat (choose times)
change Y by 10

Sorry if this is hard to understand i can't use the block images


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

Board footer