Game Development Community

About the coding of screen touching

by Shek Siu Hang · in iTorque 2D · 12/28/2009 (10:13 am) · 1 replies

I have TGB already. And I had a question about iTGB.

Is it easy to make a control like Flight Control?
User use the finger to touch the screen and set up a path and the flight follow the path until destination.


Flight Control
http://www.youtube.com/watch?v=MADHFGcmKFs

#1
01/06/2010 (12:39 pm)
I would suggest creating a new GuiObject in the engine that can track your finger in this manner. Then, when you lift the finger, have the code create a path in the game world that matches (within reason) where your finger moved, and move the object along that path.