Sync Tutorial - Making Player Movement
Reopen Torque Game Builder after saving your ShipMovement.cs file
Add this image to Torque. It will be our player's ship. Note that you must save this image as a png (Portable Network Graphic).
Graphics Tip
The Scout was created in Adobe Photoshop by tracing a scanned drawing. The eyes were added as a shape then applying two different shape styles to it.
A Gaussian Bur was used to create the glows around the eye and behind the base of the ship.
Locate the newly added ship from the Static Sprites list, and drag the ship onto the scene. Make sure you scale the ship to whatever you think is nesssessary. Remember, the bigger the ship, the bigger it is as a target.
After selecting the ship, click on the Edit tab, and go to behaviors. Then select the Ship Movement Controls Behavior.
The best part about creating behaviors in torque is that you can directly edit your code without having to leave Torque Game Builder. Also it is much easier to understand what is happening.
This diagram off to the side should give you a better understanding of what exactly is going on in the game engine.
This is just the basics of player movement, and for the more advanced programmers maybe you can expand upon this or just play around with some of the variables.