Advanced Enemy trouble
by David Cox · in Torque X Platformer Kit · 04/10/2010 (3:33 pm) · 3 replies
I've followed the tutorial that came with the Platformer Kit on how to make the advanced enemy and for some reason I can't get it to show when running the game. Also I can't set it's target to player as it will crash. When I debugged it in Visual Studio I get a pop up on line return Vector2.Distance(_actor.Position, (SceneObject.SceneGraph.Camera as T2DSceneCamera).Position); in DrillActorComponent.cs that says Object reference not set to an instance of an object. I checked my advanced enemy to the one thats created in the level_01 that came with the Platformer kit and everything looks the same so not sure as what might be causing the problem.
About the author
#2
04/10/2010 (9:20 pm)
I figured out the problem. I can't have the enemy spawn within a certain distance of the player so had to move it further away. Will have to look through the code later to find out how to change the distance.
#3
Help Please
04/24/2010 (11:18 pm)
Hello.. I cant figure out to have the enemy turn around when he hits the trigger.. he just goes right thru it.. Ive matched the settings with the demo level and cant figure it out for the life of me.. When the level starts.. the enemy runs from the spawn point down some platforms and then falls into water.. It doesnt throw any errors.. but the "Drill turn around trigger component" isnt working.. Help Please
Torque 3D Owner David Cox