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

#1 2008-08-11 04:34:53

ChainzzDB
Scratcher
Registered: 2008-08-11
Posts: 58

Newbie needs help!

So, i'm new at Scratch, and i could use some help. It might sound stupid, but....

How do i make a line that my sprite couldn't go through?


http://scratch.mit.edu/users/ChainzzDB

Offline

 

#2 2008-08-11 05:11:07

M-C-conner
Scratcher
Registered: 2008-08-03
Posts: 53

Re: Newbie needs help!

<when green flag clicked><forever><if><touching[ <turn cw( 180<move(  )steps> )degrees>ok i know how you feel we can be friends and


http://www.smiliegenerator.de/s35/smilies-24617.png

Offline

 

#3 2008-08-11 06:26:32

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Newbie needs help!

ChainzzDB wrote:

So, i'm new at Scratch, and i could use some help. It might sound stupid, but....

How do i make a line that my sprite couldn't go through?

It's a common problem with many solutions.  A technique that I like is to have the sprite go back to a previous position (not touching the wall) whenever it touches the wall color.  Here is a sample project for a rotating sprite

http://scratch.mit.edu/projects/Paddle2SeeFixIt/188807

There are many other methods that are used as well.  Some use invisible "sensor" sprites that surround the main sprite and message it information.  Others use a very simple "go back the way you came from approach" that works pretty well most of the time.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2008-08-11 07:06:53

M-C-conner
Scratcher
Registered: 2008-08-03
Posts: 53

Re: Newbie needs help!

yes i would be glad to help you with any thing possible


http://www.smiliegenerator.de/s35/smilies-24617.png

Offline

 

#5 2008-08-11 10:11:58

ChainzzDB
Scratcher
Registered: 2008-08-11
Posts: 58

Re: Newbie needs help!

Thanks, Paddle2see. You helped a lot.


http://scratch.mit.edu/users/ChainzzDB

Offline

 

Board footer