Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mport2004 on Wed 04/05/2005 01:54:16

Title: 2 scores
Post by: mport2004 on Wed 04/05/2005 01:54:16
is it posable to show two diffrent scores at once
ex. player1 score and player2 score
Title: Re: 2 scores
Post by: Scummbuddy on Wed 04/05/2005 02:05:21
you really need to read the READ FIRST Threads.

from the online beginners FAQ:
http://bfaq.xylot.com/#guis05
Title: Re: 2 scores
Post by: strazer on Wed 04/05/2005 02:20:28
Almost everything is possible with AGS, you have to be more specific what you want, how you want it and where you want it.

Here's an example (AGS 2.7 code):


  //...

  int player1score = 10;
  int player2score = 20;

  string scores;
  StrFormat(scores, "Player 1: %d - Player 2: %d", player1score, player2score);
  thelabelname.SetText(scores);

  ///...