Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
How to create an endless traffic system in CC 6.6

future_k
Registered User
Quote
2024-04-01 16:04:10

Greetings, am working on an endless car game in CC 6 so how to create a traffic system where my player will have to avoid hiting other cars going to and fro on my endless highway.


vp
Guest
Quote
2024-04-01 19:43:06

The most basic method is set the car model to 'fly in a line' and start again when it reaches the end. A slightly more advanced method is to follow a path,. You could also code the ai to move depending on proximity to player/other traffic.


new object
Guest
Quote
2024-04-02 23:52:46

Are you talking about something like this?
🔎︎



future_k
Registered User
Quote
2024-04-03 00:51:32

Yes


luposian
Registered User
Quote
2024-04-03 04:48:38

new object wrote:
Are you talking about something like this?
🔎︎

Can I play this? Looks fun!


new object
Guest
Quote
2024-04-03 10:58:08

Here are all the project files. I've written a really basic concept of this mechanic, so it's better not to use it for a real game. However, if you need to understand the basic principles of a drag racing game like this one, the files in this archive will help you.


https://drive.google.com/file/d/...

And remember that I wrote this example really quickly without considering complex problems and without using comments in the code. So, if you're creating a game like this one, I can create a real project with complex code, including comments and an example project, to make it really easy for anyone to create a racing game like this one.


future_k
Registered User
Quote
2024-04-07 15:25:54

Am interested please create the project for me.
How did you create the endless highway i relly like it.


future_k
Registered User
Quote
2024-04-09 21:19:33

Please how do i restart the game when car crashes. I have tried putting when clicked on do something behaviour on a 2d overlay item, but when i click on it it do not restart the game/scene instead it restart it at the same point with nothing moving. Just the way it was when the car crashed only that the cars gets reposition.


andgameplay
Registered User
Quote
2024-04-16 13:58:11

Hi future_k, look my games in itchio, I made something like this!

https://andgameplay.itch.io/road...

🔎︎


I used follow a path to the road stay in looping and about the traffic I used the action "shoot", so in the front of the road the cars is shooted like "bullets"! :)


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact