Button click

Talk about making games.

Button click

Postby The achievement » Sun Mar 26, 2006 1:22 am

Hi guys is there a way if i click a button the score goes up by 1 each time?
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 makslane » Sun Mar 26, 2006 1:39 am

In a Mouse Button Down event, just put this action:

score++;
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby The achievement » Sun Mar 26, 2006 1:45 am

or i can do this


code: score.textNumber = score.texeNumber +1;
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest