problem with lives-=1

Non-platform specific questions.

problem with lives-=1

Postby NUTINC » Sat Mar 31, 2007 2:32 am

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
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score

Postby makslane » Sat Mar 31, 2007 2:44 am

If frolives is an Actor, interger, variable, you must put:

Code: Select all
frolives -= 1;
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby NUTINC » Sat Mar 31, 2007 4:14 am

Thanks :D
To those of you out there, I am not dead. I am a ghost! There is a difference!
Currently Working on: Parts, A self-assembling adventure
User avatar
NUTINC
 
Posts: 98
Joined: Fri Feb 09, 2007 1:06 am
Location: Lost in the deep dark recesses of my mind, wondering why the exit sign leads to brick wall
Score: 6 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest