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

#1 2010-07-27 14:18:44

JeanTheFox
Scratcher
Registered: 2010-06-14
Posts: 1000+

8-way movement scripts

JeanTheFox here! I just decided to put an image of the scripts you can use to make a good 8 way script. there are 2 different ways to do this, using 8 different costumes, or using one costume.
8 different costume script
http://jeans-random-site.yolasite.com/resources/Untitled6.png
And with one costume;
http://jeans-random-site.yolasite.com/resources/Untitled7.png
I hope this helps someone!

Last edited by JeanTheFox (2010-07-27 14:22:09)


http://i51.tinypic.com/20gcn5j.png

Offline

 

#2 2010-07-27 14:23:30

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: 8-way movement scripts

Thanks so much for posting this! Movement is the basics of Scratch, and if you're unable to understand that, you can't really do much. This is sure to help a plethora of Scratchers. Thanks again!

Offline

 

#3 2010-07-27 23:38:19

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: 8-way movement scripts

This is great, but there are ways to garantee better results by using if else blocks inside the ifs, but this method works well enough.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2010-07-27 23:51:53

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: 8-way movement scripts

Is the point of this to let the sprite vertically and horizontally at the same time?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#5 2010-07-28 00:13:13

Zoomreddin
Scratcher
Registered: 2009-03-27
Posts: 100+

Re: 8-way movement scripts

JeanTheFox wrote:

JeanTheFox here! I just decided to put an image of the scripts you can use to make a good 8 way script. There are 2 different ways to do this, using 8 different costumes, or using one costume.
8 different costume script
http://jeans-random-site.yolasite.com/r … itled6.png
And with one costume;
http://jeans-random-site.yolasite.com/r … itled7.png
I hope this helps someone!

The First One: for when you start doing this.
The Second One: For when you know the code well and want to make it shorter.
Is that the way it goes?  big_smile


http://mag.racked.eu/image/46.1/Bombs+Away%21/mca.png

Offline

 

#6 2010-07-28 07:27:52

chipguy
Scratcher
Registered: 2009-09-09
Posts: 500+

Re: 8-way movement scripts

nice! technicaly cant you old two arrow keys down and they regually would move on diagonal?


http://scratch.mit.edu/static/projects/chipguy/2919121_sm.png by yours truly  big_smile

Offline

 

#7 2010-07-28 08:24:09

JeanTheFox
Scratcher
Registered: 2010-06-14
Posts: 1000+

Re: 8-way movement scripts

chipguy wrote:

nice! technicaly cant you old two arrow keys down and they regually would move on diagonal?

Yes, that is the point of 8 way movement.  big_smile

Zoomreddin wrote:

The First One: for when you start doing this.
The Second One: For when you know the code well and want to make it shorter.
Is that the way it goes?

Yeah, pretty much.  big_smile

I'll be making more tutorials, I currently writing one for Advanced Topics that lets you add 5 new visual effects.


http://i51.tinypic.com/20gcn5j.png

Offline

 

#8 2010-07-28 09:25:28

JeanTheFox
Scratcher
Registered: 2010-06-14
Posts: 1000+

Re: 8-way movement scripts

Harakou wrote:

Is the point of this to let the sprite vertically and horizontally at the same time?

You mean diagonally, and yes.  big_smile

Last edited by JeanTheFox (2010-07-28 09:25:39)


http://i51.tinypic.com/20gcn5j.png

Offline

 

#9 2010-07-28 09:45:15

midnightleopard
Scratcher
Registered: 2007-09-13
Posts: 1000+

Re: 8-way movement scripts

very good!


http://pwp.wizards.com/5103673563/Scorecards/Landscape.png

Offline

 

#10 2010-07-28 09:46:25

JeanTheFox
Scratcher
Registered: 2010-06-14
Posts: 1000+

Re: 8-way movement scripts

midnightleopard wrote:

very good!

Thanks!


http://i51.tinypic.com/20gcn5j.png

Offline

 

Board footer