Tutorial wanted: Emulate controls while programming on PC
by Andy Hawkins · in iTorque 2D · 05/12/2012 (8:44 am) · 2 replies
Is there a technique to emulate controls of the acelerometer via cursor keys and touch by mouse click? This would be extremely handy as I mainly develop on the PC and trialing the controls in the this manner would speed up production, meaning I wouldn't have to connect to a device all the time.
#2
EDIT: Don't worry found it. But it just reports the values. Hmmm I guess I could control the player from that function... let's see...
05/12/2012 (5:54 pm)
And is gravityXFunction built in? Or do I need to write that?EDIT: Don't worry found it. But it just reports the values. Hmmm I guess I could control the player from that function... let's see...
Torque 3D Owner Luis E Pabon
Independent
You could either run the input in gravityXFunction as "set the linear velocity to %input * %modifier", or "increase the linear velocity by %input every time the key is tapped".