2 player score keeping in game maker

A place for people with an interest in developing new shmups.
Post Reply
collapsicon
Posts: 9
Joined: Fri Oct 28, 2005 7:07 am
Contact:

2 player score keeping in game maker

Post by collapsicon »

Hi,
Trying to track the score of two players at the same time, so I need to some how create score keeping for P1 and P2 some how? Any Idears?
(gamemaker6) thankx
User avatar
battlegorge
Posts: 67
Joined: Thu Feb 16, 2006 12:39 pm

Post by battlegorge »

You only need to create 2 variables for the scores

gamecontroller create event

Code: Select all

global.player1_score=0
global.player2_score=0
When player1 destroyes an enemy you raise global.player1_score

Code: Select all

global.player1_score+=200
Then you can draw both values:

Code: Select all

draw_text(50,50,string(global.player1_score))
draw_text(400,50,string(global.player2_score))
collapsicon
Posts: 9
Joined: Fri Oct 28, 2005 7:07 am
Contact:

Post by collapsicon »

awesome, thanks that string command was what I was looking for, got my head around globals no probs and I guess I can do a simular thing for keeping track of lives and a power up system.
Thanks
:twisted:
Post Reply