Page 1 of 1

problem with lives-=1

PostPosted: Sat Mar 31, 2007 2:32 am
by NUTINC
am currently making a survival game and am progging the lives program.

i have read the other forum topics talking about the live progging. Everything in my program works except for the part where lives are destryoyed. Did I do this program right It's a collision code for when the player collides with the enemy.

Code: Select all
frolives-=1


p.s. the variable of the player's life is frolives

PostPosted: Sat Mar 31, 2007 2:44 am
by makslane
If frolives is an Actor, interger, variable, you must put:

Code: Select all
frolives -= 1;

PostPosted: Sat Mar 31, 2007 4:14 am
by NUTINC
Thanks :D