Problems with adding scores in game?

Game Editor comments and discussion.

Problems with adding scores in game?

Postby lilkid » Tue Feb 26, 2008 3:17 am

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
SAVE THE TREES AND RECYCLE!!! YEAH!!!!
lilkid
 
Posts: 19
Joined: Mon Feb 25, 2008 4:57 pm
Location: unknown...
Score: 11 Give a positive score

Re: Problems with adding scores in game?

Postby Game A Gogo » Tue Feb 26, 2008 12:46 pm

Code: Select all
Var+=number;
is better!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Problems with adding scores in game?

Postby Kalladdolf » Tue Feb 26, 2008 1:00 pm

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;
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Problems with adding scores in game?

Postby Bee-Ant » Tue Feb 26, 2008 1:36 pm

And to decrease healhty depends on enemy attack
Code: Select all
player.power-=enemy.attack;
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Problems with adding scores in game?

Postby Kalladdolf » Tue Feb 26, 2008 1:45 pm

lol, this is getting to be a brand-new health turtorial :lol:
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Problems with adding scores in game?

Postby Game A Gogo » Tue Feb 26, 2008 2:07 pm

maybe that is what we should do!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Problems with adding scores in game?

Postby Bee-Ant » Tue Feb 26, 2008 2:10 pm

Oh yeah Gogo...I'm still little confused how to decrease power smoothy with timer... :roll:
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Problems with adding scores in game?

Postby Game A Gogo » Tue Feb 26, 2008 4:49 pm

It's easy, create timer, infinite, and on timer event, decrease it there!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Problems with adding scores in game?

Postby Bee-Ant » Wed Feb 27, 2008 10:17 am

I know how to do it...
My problem has fixed anyway...
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron