way

Posted By: GameScore

way - 05/28/09 17:47

how can i realize that an entity moves only for a few seconds by a pressed button or only a fixed distance?
did someone have an idea or a code example for me?
Posted By: Jaxas

Re: way - 05/29/09 22:28

example:

var time = 0;
..
if(!key_cul)time = 0;
if(key_cul & time < 5)// 5 - is how many frames entity must go
{
c_move(me,vector(1,0,0), nullvector, GLIDE); //move entity
time +=1;
}
wait(1);
...
© 2024 lite-C Forums