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

#1 2012-03-28 15:18:23

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Problem with racing game.

I have made a racing game for school. I need the car to go up a lap when it tocuhes a line. It doesnt work, ive tried when touches sprite change up one lap and when touching colour, it just doesnt respond. Any suggestions?

Offline

 

#2 2012-03-28 15:19:45

pi3
Scratcher
Registered: 2011-12-31
Posts: 500+

Re: Problem with racing game.

cathaoir99 wrote:

I have made a racing game for school. I need the car to go up a lap when it tocuhes a line. It doesnt work, ive tried when touches sprite change up one lap and when touching colour, it just doesnt respond. Any suggestions?

Could you post the scripts you're using? It may be simple problem like forgetting a forever block.


http://i44.tinypic.com/ofdhc4.jpgThanks FreshStudios!

Offline

 

#3 2012-03-28 16:14:08

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Re: Problem with racing game.

pi3 wrote:

cathaoir99 wrote:

I have made a racing game for school. I need the car to go up a lap when it tocuhes a line. It doesnt work, ive tried when touches sprite change up one lap and when touching colour, it just doesnt respond. Any suggestions?

Could you post the scripts you're using? It may be simple problem like forgetting a forever block.

Hey, I uploaded the game, its on my profile. Any help is deeply appreciated!

Offline

 

#4 2012-03-28 16:18:29

pi3
Scratcher
Registered: 2011-12-31
Posts: 500+

Re: Problem with racing game.

cathaoir99 wrote:

pi3 wrote:

cathaoir99 wrote:

I have made a racing game for school. I need the car to go up a lap when it tocuhes a line. It doesnt work, ive tried when touches sprite change up one lap and when touching colour, it just doesnt respond. Any suggestions?

Could you post the scripts you're using? It may be simple problem like forgetting a forever block.

Hey, I uploaded the game, its on my profile. Any help is deeply appreciated!

Okay, I downloaded and will look at it after my music lesson.  smile

Last edited by pi3 (2012-03-28 16:19:01)


http://i44.tinypic.com/ofdhc4.jpgThanks FreshStudios!

Offline

 

#5 2012-03-29 10:56:16

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Re: Problem with racing game.

pi3 wrote:

cathaoir99 wrote:

pi3 wrote:


Could you post the scripts you're using? It may be simple problem like forgetting a forever block.

Hey, I uploaded the game, its on my profile. Any help is deeply appreciated!

Okay, I downloaded and will look at it after my music lesson.  smile

Hey, thanks. Have you looked at it (:?

Offline

 

#6 2012-03-29 11:24:58

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Problem with racing game.

I am not sure but I downloaded your game and had a look the only way I could find was to make a small black line ( a new sprite ) and place it on the finish line so that you cant tell its there. then SORRY ABOUT THE RUBBISH SCRATCH BLOCKS I HAVE NEVER DONE IT    BEFORE?

when i receive (level 1)
forever
if < (touching) (theblackline) >
change (laps) by (1)
wait 1 secs
sorry if this doesnt work but it did for me.

Offline

 

#7 2012-03-29 11:40:41

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Re: Problem with racing game.

Thanks alot for the reply. I will certainly give it a go tonight. Btw, if it definetly works for you, could you just upload yours and I could download it?

Offline

 

#8 2012-03-29 12:05:12

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Problem with racing game.

quick question? when you hit the side bariers is the LAPS variable supposed to reset?

Offline

 

#9 2012-03-29 12:30:45

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Re: Problem with racing game.

It doesnt really matter. Probably reset tbh.

Offline

 

#10 2012-03-29 12:40:27

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Problem with racing game.

ok i uploaded it i hope it is what you where looking for.

Offline

 

#11 2012-03-29 12:49:23

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Re: Problem with racing game.

Thanks alot. Works perfect. Can you delete the game now? Its just its for school and exam boards check the website. Thanks again!

Offline

 

#12 2012-03-29 12:50:47

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Problem with racing game.

sure i will delete it i'm glad i helped.

Offline

 

#13 2012-03-29 14:40:50

cathaoir99
New Scratcher
Registered: 2012-03-28
Posts: 9

Re: Problem with racing game.

Can you repost it? Ive lost it!!!

Offline

 

#14 2012-03-29 15:12:19

pi3
Scratcher
Registered: 2011-12-31
Posts: 500+

Re: Problem with racing game.

Oh, looks like I was too late. Here's what I have:

when I recieve [level 1]
forever
    wait until < (y position) > [-100] >
    wait until < touching color white >
    if    < (lap position) = 1 >
          change [laps] by [1]
          set [lap position] to [0]
    end
end
And then a
 set [lap positon] to [0] 
at the begining of your big script and when you hit a wall.


http://i44.tinypic.com/ofdhc4.jpgThanks FreshStudios!

Offline

 

#15 2012-03-29 16:50:04

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Problem with racing game.

sorry i didint go on forums for ages so didint notice your post
i didnt save it so cant repost it now DX i gtg now though but if u havent sorted the problem by sometime tommorow i will make it again for you as sometime tommorow is when i will be back......lo sorry

Offline

 

#16 2012-03-30 17:34:12

gamesman12
Scratcher
Registered: 2012-03-13
Posts: 67

Re: Problem with racing game.

sorry i was a bit late posting this again but the games up i hope it helps.

Offline

 

#17 2012-06-03 15:57:10

AddInnovation
Scratcher
Registered: 2011-11-16
Posts: 57

Re: Problem with racing game.

Hi - did you work it out ? I'm happy to help. I've got a few racing games - let me know if yoyu havent fixed it, and what you're looking for. You could look at my scripts and I can eplain them.

Offline

 

Board footer