Animation Movement And Spawning
by Kevin A Emmett · in Technical Issues · 11/23/2007 (9:39 pm) · 4 replies
In the game i have been working on i have tons of animated sprites and each of which are suppose to move with the code that we have devised however they do not want to respond to the code at all, however the static sprites respond perfectly i was wondering if was missing maybe identifying the fact that it is an animation or something if anyone can help i would be extremely appreciative and if this is somewhere else on the forums im very sorry for creating a new thread
#2
also the staic sprite have not been spawning either they did at the begining of the game but now they haven't its wierd
11/24/2007 (8:11 am)
Sorry we have a top down shooter where the enemies move back and forth across the screen while moving down slowly to attack the main character. the static sprites that we used have been responding to this code and movingperfectly however when using an animted sprite it does nothing at all. i have checked the class name and the dynamic fields and they all read correctly so is there a lone of code i would have to add to make the animation move.also the staic sprite have not been spawning either they did at the begining of the game but now they haven't its wierd
#3
{
%this.setlinearveloctiyX(getrandom(50,100));
%this.setlinearvelocityY(getrandom(20, 50));
}
this is thebasic movement function
11/24/2007 (8:19 am)
Function ameoba::onLevelLoaded(%this, %scenegraph){
%this.setlinearveloctiyX(getrandom(50,100));
%this.setlinearvelocityY(getrandom(20, 50));
}
this is thebasic movement function
#4
11/28/2007 (6:42 pm)
I don't use TGB, but that doesn't look like a movement function to me.
Torque Owner Nathan Kent