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

#1 2010-07-09 16:42:22

scratchU8
Scratcher
Registered: 2009-09-08
Posts: 100+

My Sprite MUST Go Around. Rawr. >:D

I cant figure out the scripts for a sprite to keep on going around, and around forever. Any scripts?

Offline

 

#2 2010-07-09 16:46:36

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: My Sprite MUST Go Around. Rawr. >:D

A forever loop would do. Simply try:

when green flag clicked
forever{
move (10) steps
change direction clockwise by 90 degrees
}


Converting my Scratch projects to Python!

Offline

 

#3 2010-07-09 16:52:10

hmnwilson
Scratcher
Registered: 2007-07-04
Posts: 1000+

Re: My Sprite MUST Go Around. Rawr. >:D

What do you mean by "go around"? Go around what?

If you want the sprite to spin around in place, try this script:
http://www.freeimagehosting.net/uploads/4f549bca79.gif


I'm taking a break from Scratch until 2.0 comes out. Any messages sent between then and now probably won't be read - sorry.
(Oct. 20, 2011)

Offline

 

#4 2010-07-09 16:53:29

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

Re: My Sprite MUST Go Around. Rawr. >:D

Both of those scripts will work, depending on what you want done.

Offline

 

#5 2010-07-09 17:04:28

scratchU8
Scratcher
Registered: 2009-09-08
Posts: 100+

Re: My Sprite MUST Go Around. Rawr. >:D

Well, I want it to simply spin around. Go in a circle. Y'know?

Offline

 

#6 2010-07-09 17:07:45

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

Re: My Sprite MUST Go Around. Rawr. >:D

scratchU8 wrote:

Well, I want it to simply spin around. Go in a circle. Y'know?

Spin around, like constantly rotate, or move around in the shape of a circle?

Offline

 

#7 2010-07-09 17:20:52

filo5
Scratcher
Registered: 2008-01-08
Posts: 1000+

Re: My Sprite MUST Go Around. Rawr. >:D

Move the rotation centre away from the real centre of the sprite, and you'll more or less get what you want with Wilson's script.


Converting my Scratch projects to Python!

Offline

 

#8 2010-07-09 18:18:49

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

Re: My Sprite MUST Go Around. Rawr. >:D

Try this:
http://i28.tinypic.com/awfghd.gif
Where increment is the number of degrees the sprite will turn each time, and circumference is well, the circumference of the circle.

Last edited by Harakou (2010-07-09 18:19:34)


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

 

#9 2010-07-10 13:55:30

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: My Sprite MUST Go Around. Rawr. >:D

http://i25.tinypic.com/a14cas.jpg

Reduce the numbers to make it slower.

Offline

 

Board footer