I dont know if I am doing something wrong but neither of those scripts seem to increase my model's pan the longer the player holds key_cur. I need a kind of acceleration but for turning, the longer the player holds key_cur the faster the model spins. Please help.
Last edited by FutureRaptor; 12/28/1023:25.
Re: How to increase the pan of an object when key_cur is pressed?
[Re: FutureRaptor]
#351859 12/28/1023:3412/28/1023:34
cause examples above are using static values. do it like THIS:
Code:
function SpinFaster()
{
var speed = 0;
while(1)
{
my.pan += speed * key_cur;
speed += 1*time_step; //you may adjust here for faster
wait(1); // spinning
}
}
Last edited by Rackscha; 12/28/1023:35.
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
Re: How to increase the pan of an object when key_cur is pressed?
[Re: Rackscha]
#352471 01/03/1120:3601/03/1120:36