I'm wondering what is the best way to make a top view car game, the simplest 2d car game you can think of.
I have some textures that i can put together on the grid but i dont want the car to be able to drive off the road.
Is there any way to draw lines on the edge of the road so the car will bounce if it hits it ?
Probably the easiest way to do this would be to draw invisible (or visible) borders around your tracks and test for collisions between them to prevent your car going off the road.
i have 10 markers around the map where there are randomly spawned power ups.
i'm using this code, the problem is that the power up dont always get destroyed. So they dont work..
Dont understand what it could be. I start the frame with Spreading value 0 on all the markers
and i have debugged this and all the numbers match..
Create power up:
+ Every 10"-00
+ Number of "Power up" <= 2
+ "Spawn place" Internal flag 0 is OFF
+ Pick one of "Spawn Place"
- Create "power up" at (0,0) from "Spawn Place"
- Set "Power up" Alt a = "Spawn Place" Alt A
- Set "Spawn Place" Internal flag 0 ON
Get power up:
+ "Spawn place" Internal flag 0 is ON
+ Collision between "Car" and "Power up"
+ "Power up" Alt A = "Spawn place" Alt A
- Add Gas on Car
- Destroy "Power up"
- Set "Spawn place" Internal flag 0 OFF