new life

Game Editor comments and discussion.

new life

Postby frodo » Tue Mar 28, 2006 6:03 pm

does anyone know how to have a score, and every 100 points, you get another life? Not just like at one-hundred points you get a life, but you get a life on 100 points, 200 points, 300 points, 400 points, and so on.

Thanks
User avatar
frodo
 
Posts: 127
Joined: Tue Mar 21, 2006 6:53 pm
Location: universe
Score: 2 Give a positive score

Postby The achievement » Sat Apr 01, 2006 2:48 am

i would say do this



if (your score actor)>100;



Now your life actor score or text


(your life actor)>100;

CreateActor(Extra life)
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby DilloDude » Sat Apr 01, 2006 7:10 am

Have three variables: Score, lives and lifeUp.
Have a text actor with draw actor event:
Code: Select all
textNumber=Score;
if(Score>=lifeUp)
{
    lives+=1;
    lifeUp+=100;
}

just add in view->create actor:
Code: Select all
lifeUp=100;
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest