Page 1 of 1
Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 3:17 am
by lilkid
adding or substracting scores or lives in your game
use: script editor and type:
(actor) = (actor) (+or-)(score wanted);
example:
score = score + 1;
makes score go up by 1 point
Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 12:46 pm
by Game A Gogo
- Code: Select all
Var+=number;
is better!
Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 1:00 pm
by Kalladdolf
and if you have several actors that have health:
make the variable an actor variable instead of global and use this code:
- Code: Select all
actor.var += number;
Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 1:36 pm
by Bee-Ant
And to decrease healhty depends on enemy attack
- Code: Select all
player.power-=enemy.attack;
Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 1:45 pm
by Kalladdolf
lol, this is getting to be a brand-new health turtorial

Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 2:07 pm
by Game A Gogo
maybe that is what we should do!
Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 2:10 pm
by Bee-Ant
Oh yeah Gogo...I'm still little confused how to decrease power smoothy with timer...

Re: Problems with adding scores in game?

Posted:
Tue Feb 26, 2008 4:49 pm
by Game A Gogo
It's easy, create timer, infinite, and on timer event, decrease it there!
Re: Problems with adding scores in game?

Posted:
Wed Feb 27, 2008 10:17 am
by Bee-Ant
I know how to do it...
My problem has fixed anyway...