What is the global name of the sprite list in Torque X 2D?
by Adam Schein · in Torque X 2D · 03/28/2009 (9:10 am) · 0 replies
I'm trying to programmatically change the actor.MeleeSpawnObject in the C# editor but don't know the global list or variable within the source code. Does anyone know this or familiar with the source code.
My code looks like this:
switch (numMeleePushed)
{
case 1:
actor.MeleeSpawnObject = {must know the list variables}
actor.MeleeAnim=
//actor.MeleeSpawnObject.Name = "PlayerMelee";
//actor.MeleeAnim.Name = "AttackanimAnimation";
break;
case 2:
actor.MeleeSpawnObject.Name = "PlayerMelee2";
actor.MeleeAnim.Name = "JumpAnimAnimation";
break;
case 3:
actor.MeleeSpawnObject.Name = "PlayerMelee3";
actor.MeleeAnim.Name = "PlayerRunAnimAnimation";
break;
}
My code looks like this:
switch (numMeleePushed)
{
case 1:
actor.MeleeSpawnObject = {must know the list variables}
actor.MeleeAnim=
//actor.MeleeSpawnObject.Name = "PlayerMelee";
//actor.MeleeAnim.Name = "AttackanimAnimation";
break;
case 2:
actor.MeleeSpawnObject.Name = "PlayerMelee2";
actor.MeleeAnim.Name = "JumpAnimAnimation";
break;
case 3:
actor.MeleeSpawnObject.Name = "PlayerMelee3";
actor.MeleeAnim.Name = "PlayerRunAnimAnimation";
break;
}