Easy,Normal,hard

Talk about making games.

Easy,Normal,hard

Postby Crusader » Sat Aug 27, 2005 11:44 am

Hi,dudes how can I make level dificult?You,know you choose to play the
level on easy,hard or normal mode? :D :D :D :D :D :D :D :D :D :D :D :D
Visit animationprotector.i8.com
User avatar
Crusader
 
Posts: 49
Joined: Wed Aug 17, 2005 11:15 am
Location: Bulgaria
Score: 0 Give a positive score

Postby ondy1985 » Sat Aug 27, 2005 2:55 pm

you just need a variable to store the selected difficulty, e.g. 1 for easy, 2 for medium and 3 for hard.

Code: Select all
Difficulty = 2;

// On enemy Create Actor event
health = Difficulty * 25;

// On player collision with enemy
Player.health = Player.health - (5 * Difficulty);

// Somewhere ;)
int i;
for (i = 0; i < Difficulty; i++) CreateActor("Enemy", ....);

....
User avatar
ondy1985
 
Posts: 99
Joined: Thu May 05, 2005 7:43 pm
Location: Slovakia
Score: 1 Give a positive score

Postby Chai » Mon Aug 29, 2005 1:46 pm

maybe u can use this way
make easy normal hard button
after that add Event/mouse button down each button
and put the variable in button
ex; level =1;
1=easy 2= normal 3=hard

that all

*u can put another varible in button like speed or Hp etc...
User avatar
Chai
 
Posts: 361
Joined: Sat Apr 30, 2005 2:26 pm
Location: Thailand
Score: 30 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest