Page 1 of 1
Global actor Speed up
Posted:
Tue Aug 29, 2006 12:30 am
by HillBilly
I am wanting to speed up all actors when level is finished, with a global variable.
Something like:
after level:
A=A+1
directional_velocity = A;
I would like to use the same variable for all actors. So all actors will speed up that use the variable A
Posted:
Tue Aug 29, 2006 12:48 am
by makslane
Just create the 'A' variable as global in the 'Add New Variable' panel
Posted:
Tue Aug 29, 2006 1:32 am
by HillBilly
Still messing something up here.
I go to--
Script
Global Code
click on Variables
Add
enter my variable name like "movespeed"
then the only thing that will take any number and save it is "Save Group" everything else does not store anything when I go to edit variable to see if it is still there.
--------------------------------------------------------------
Then in my actor control script I have
directional_velocity =movespeed;
and they sit there.
Posted:
Tue Aug 29, 2006 2:09 am
by HillBilly
I think I have it now.
I forgot a line of code
movespeed=movespeed+1;
Posted:
Tue Aug 29, 2006 5:29 am
by banner88
I think I have it now.
I forgot a line of code
movespeed=movespeed+1;
You can just use
movespeed++;
Saves you typing and looks better.
Posted:
Tue Aug 29, 2006 8:24 pm
by Game A Gogo
dont forget that the global code dosn't do the script every frame, it only perform special comands, just like you where creating a game in C script only!
so i recomand using the "View" actor or another actor.
Posted:
Tue Aug 29, 2006 10:47 pm
by HillBilly
OK. Thanks for the info.