Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Health?

Author
Message
Tylerman35
15
Years of Service
User Offline
Joined: 23rd Jul 2009
Location:
Posted: 15th Aug 2009 03:09
How can i give colonel-x.x Health? I imported an AK47 and when i click it makes an ak47 sound, But how can i make a health thing for colonel-x.x so when i click down until the sound is over. If you dont know what im talking about then ill give a source code!

please help!
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 15th Aug 2009 04:51
You would need to have a variable that would track the health level, and you would raise or lower it depending on what is happening in your game.

Have a look at the Dark Dungeon example that comes with GDK, its a first person shooter, but it has a simple health indicator that goes down when you take damage and you die when it gets to zero, you can also learn simple ways to make and load a map and handle enemies aswell as health, from Dark Dungeon.

Good Luck

If it ain't broke.... DONT FIX IT !!!

Login to post a reply

Server time is: 2024-10-01 10:39:21
Your offset time is: 2024-10-01 10:39:21