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

#1 2012-05-09 11:55:57

coolbear99
New Scratcher
Registered: 2012-05-09
Posts: 5

Script help please! :D

At the moment i am making a racing game. How can i make so that if it hits another sprite like a wall that it wouldn't go straight through?

Offline

 

#2 2012-05-09 13:06:04

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: Script help please! :D

coolbear99 wrote:

At the moment i am making a racing game. How can i make so that if it hits another sprite like a wall that it wouldn't go straight through?

I've noticed that you've put this question in 4 different places, you should only post a question in one place. be paitent  wink . This is the right place to put it. Whenever you need help with scripts, post your problem here.
For your problem, Try this Scratch Wiki page. The scratch wiki is a great resource whenever you have problems with scratch.

Last edited by AgentRoop (2012-05-09 13:06:27)


La La
I wrote an album.

Offline

 

#3 2012-05-09 14:15:01

FINGINtest
Scratcher
Registered: 2012-03-26
Posts: 20

Re: Script help please! :D

if it is 'top down view/3rd person', make 1 sensor, a line with same length as car and put it at top/front of car. then in it.

   
when gf clicked
forever
go to car
if <touching wall/colour __>
broadcast bump top
when I receive bump top
change y by -5/10
same applies for side-scroller execpt change by -x or +x.

Offline

 

Board footer