In our new racing game, which is on the verge of completion, we are using scene changes to switch to the next race after winning the first one. Please check in https://playcanvas.com/editor/project/653630
However, when I change scenes to the next race, the code that detects the winning /losing collision stops working. If I run the scene independently, it works fine.
Either I am not really good at this game or something is buggy. I keep pressing space to accelerate, RPM hits the maximum, then I shift to 2nd gear.
But rpm is still at maximum engine doesn’t seem to be affected by the any gear, is that expected? And I can’t really tell what is my speed, if I am speeding or not.
Sorry I had to go, debug this and let me know if there something I am doing wrong.
For your initial issue if you can create a simple repro scene that it’s very easy to arrive first at the end of the race and win, I will give it a try later.
This isn’t going to get you to the flag first @Leonidas.
Don’t let the car rev to the limiter. Or you will be too slow to beat the opponent. If you notice, the game says you shifted late.
Also, I forgot to mention(very sorry). Try not holding space and shifting at the same time. Just like a real car, where you don’t press the clutch and gas at the same time.
Right, I expected that even though I am holding the gas the engine will rev down as soon as I shift up.
As expected by a real engine. I think also including the current speed of the car in the UI will help tons understanding what exactly the car/engine are doing.