Hi C2 developers! ^^
I would like to hear from you what is the best way to make an object not controlled by the player move linearly through a predetermined track.
I managed to do here through waypoints together with the MoveTo behavior, but it's not perfect, because I need that to move objects in a perfect line between the waypoints without small deviations. It is worth mentioning that my game uses isometric perspective (30 degrees), then the difficulty is greater. Furthermore, there are waypoints in stage 5 to move the object from point A to B.
HOW TO IMPLEMENT THE RANDOM TRACK?
Now I'm trying to implement an alternative random paths system to a game based on the simple_path_follow.capx posted in this thread by R0J0hound.
I'm trying to do this:
I believe that the right way to do this is by identifying the black circles through UID, but I cannot implement it. For this, I left the black dots that make up the parallel paths with equal values in the variable "n".
So I tried (unsuccessfully) to do their own event to redirect the avatar, making the following changes:
Object move at angle: move min(Self.speed*dt, Self.dist2target) pixels at angle angle(self.X,Self.Y,Dot(choose(30,31)).X,Dot(choose(30,31)).Y)
Object subtract from: subtract Self.speed*dt from dist2target
RANDOM TRACKS SYSTEM IMPLEMENTED BY blackhornet, through LiteTween.
Thanks in advance the attention and collaboration of all. ^^