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

#1 2009-12-20 17:37:47

Raakuth
Scratcher
Registered: 2009-11-18
Posts: 8

Hey im making a game and i need a bit of help....

Hi i was just wondering how do i make it so if i hit a wall in my game i will bounce e.g. when the player sprite hits a wall sprite the player bounces.

Thanks for reading  smile


http://img710.imageshack.us/img710/5325/db652a36e109b70d6ab8698.pnghttp://img710.imageshack.us/img710/2360/207bd7b8d8d38d39ac99eb7.png

Offline

 

#2 2009-12-21 07:02:11

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Hey im making a game and i need a bit of help....

You will need a bounce script. ( http://scratch.mit.edu/projects/Magnie/701486 )

Offline

 

#3 2009-12-21 20:06:46

M0N1
Scratcher
Registered: 2009-12-16
Posts: 22

Re: Hey im making a game and i need a bit of help....

If you want lets say a ball to bounce just go [blocks]<if on edge, bounce>[/blocks]
If you want let say a human to bounce and face the other way. do this as well [blocks]<if on edge, bounce>[/blocks] but at the top of the scratch program, you can see your sprite. There are three buttons next to it. one to flip direction, one to turn and one to stop you from turning. click the one that looks like this. [<->] that will stop your human from flipping upside down if bouncing off the end. Sorry if this confusing.

Offline

 

#4 2009-12-21 20:09:21

M0N1
Scratcher
Registered: 2009-12-16
Posts: 22

Re: Hey im making a game and i need a bit of help....

the button looks like that but shorter <---->

Offline

 

Board footer