Draw Path

How I came up with the idea?

I always loved playing RTS games, it doesn't mean I'm good at it though, and I always wondered how come people haven't made an RTS game with mobile-controls? I ended telling myself, if I cannot find an RTS with a mobile-friendly control, then I might as well try to create one.

Highlights:

  • Tap on the character and draw its path
  • Multiple type of path can be created with consistent control

Different Path Types:

Normal Path

While creating the prototype, I wondered which method would be the best to for players to control their character. My conclusion was to create an array of waypoints by drawing out a path.

High level:

  • When triggered, a raycast will be created where the touch input was made
  • Create a waypoint for every [x] distance of the drag.
Normal Path

Patrol Path

I wanted a way to create both a simple path for the character to follow and a patrol route therefor I added a simple feature where the path will loop forever if we draw a circle.

Ping Pong Path

Of course having the ability to make the character moving back and forth was made, patrolling doesn't always mean following a path in a circle.

Looping Path

As I worked on the prototype I told myself that it would be useful if we could have the same feature as the Patrol Path, so I made it possible to create loops without having to draw a complete circle.