Hey Folks,
i am currently programming a little sidescroller game where the player can build rails and use a "minecart" to fasttravel. The rails are placed on a 128 x 128 grid.
For the minecart movement i tested
- Platform behavior
- Physics beahvior
- Move to behavior
Platform behavior worked the best so far but brings big troubles with intersections
Physicsbeahvior is to wonky to be used here, also collision detection might be a problem.
I found this construct.net/en/forum/construct-3/how-do-i-8/keep-object-train-curve-rail-143038 thread whcih describes a move to behavior, which seems to be the best aproach, but even this seems to be a bit choppy when used at higher speeds meaning the "breaking" looks a "bit" off. Also it seems to be more suitable for a path which does not change... But with intersections is a different storry.
So if the player presses down and there is an option to go straight or down the down path should be chosen.
How would you solve this? Is there even a good approach to this? What would be your starting point?
Physics seem to be nice, as the cart would roll down when on a hill or slow down when going up but it does not seem to be useable.
Kind regards
Joschi