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

#1 2009-02-15 17:03:39

sailorgrl
Scratcher
Registered: 2009-02-07
Posts: 20

Lap for racing game

I am trying to do a racing game where when you complete a lap the finish line can sense it. But I want to ensure that nobody cheats and completes a full lap.
What should I do?
Right now I have it so it goes like this: <if><touching[ finish line]
                                                      <add [lap] to list>

Offline

 

#2 2009-02-16 05:04:27

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: Lap for racing game

you can use the same thing i did with my flash racing game. Simply have cheack points, and when the car hits cheakpoint one, if the var of I is 1, it turns it to 2, then at cheak point 2, if the var is 2, then turn it to 3, and when it touche the finish line, if the var is 3, it changes the lap variable and sets I back to 1.

Offline

 

#3 2009-02-16 09:44:10

sailorgrl
Scratcher
Registered: 2009-02-07
Posts: 20

Re: Lap for racing game

Thanks that helps!

Offline

 

#4 2009-02-16 13:04:05

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Offline

 

Board footer