2 Questions - Please Help
by Do Not Delete · in Torque X 2D · 09/05/2007 (7:46 pm) · 42 replies
1. What is the best way to pause a game using Torque X?
2. I've been tinkering around with the FireProjectileComponenet from the Blaster Tutorial and decided to add the code to the Player Controller.cs file. There is one problem though, it can't find SceneObject. The SceneObject in our case is the Dragon. What would the equivilent of SceneObject be in our case?
Code:
Thanks!
2. I've been tinkering around with the FireProjectileComponenet from the Blaster Tutorial and decided to add the code to the Player Controller.cs file. There is one problem though, it can't find SceneObject. The SceneObject in our case is the Dragon. What would the equivilent of SceneObject be in our case?
Code:
// Set the position based on the position of the object that's shooting.
projectileObj.Position = SceneObject.Position;
projectileObj.Layer = SceneObject.Layer + 1;Can anyone help?Thanks!
About the author
Torque Owner Do Not Delete