-
in the coding side Event editor
[
every n seconds
and pick car at random
and pick group 'reference point' (checkpoint)at random
and value a of car = value a of reference point-1
AND VALUE B OF CAR < NUMBER OF LAPS
]
action-
look in the direction of actionspot of reference point,set speed (?)+rnd(?)
just added in where you can check the b value of the car which gets added with 1 each time u collide with the ' special barrier'( a win line sprite )
so you could slow down and stop the winning cars if u wished
if val b>laps and speed >0 set speed of car to (speed of car -1) for instance
or
if val b of car > laps [set animation of car to win]
-
SgtSmileyUK,
The racing game is going great. I have 3 opponents racing around the track by the example you provided. I'm now at the point of collisions between the player and the opponents. I set up "sensors" on both sides of each race car to detect collisions. However, the action "Bounce" doesn't work. I know there's a better way to have collisions. Could you once more help a brother out? Thanks!