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

#1 2007-09-23 13:21:58

siddthesquid
Scratcher
Registered: 2007-09-23
Posts: 100+

newb help needed!

im new to scratch, so i dont no how to do really complex things, but i no most of the basics. I'm making a game and i need to know how to stop sprites from overlapping eachother no matter what the user does. I also need to know how to make it so the sprites cant go off the screen.

Offline

 

#2 2007-09-23 13:38:25

siddthesquid
Scratcher
Registered: 2007-09-23
Posts: 100+

Re: newb help needed!

also, i need to know how to make things bounce off of other sprites. For example, if a ball hits a sprite from the bottom at 45 degrees, then it should bounce back at 135 degrees.

Offline

 

#3 2007-09-24 18:58:03

siddthesquid
Scratcher
Registered: 2007-09-23
Posts: 100+

Re: newb help needed!

can sum1 plz help me?

Offline

 

#4 2007-09-24 19:41:49

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: newb help needed!

Firstly, to keep things from overlapping you have to make them move away from each other. This can be done by moving -1 steps when touching a wall or something .

Secondly, the sprites can't on go off the screen even if you wanted them to.

And for your third question go to http://scratch.mit.edu/forums/viewtopic.php?id=730

its a reflection formula.

Last edited by archmage (2007-09-24 20:09:06)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#5 2007-09-24 20:09:43

siddthesquid
Scratcher
Registered: 2007-09-23
Posts: 100+

Re: newb help needed!

u are the best  smile  thnx

Offline

 

Board footer