Page 1 of 1

new life

PostPosted: Tue Mar 28, 2006 6:03 pm
by frodo
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

PostPosted: Sat Apr 01, 2006 2:48 am
by The achievement
i would say do this



if (your score actor)>100;



Now your life actor score or text


(your life actor)>100;

CreateActor(Extra life)

PostPosted: Sat Apr 01, 2006 7:10 am
by DilloDude
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;