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.

AppGameKit Classic Chat / Players lives

Author
Message
kirtn14
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 31st Jan 2012 09:24
I was wondering if it is possible to set up a lives system so instead f game over straight away You get say 3 lives and after 2 sprites different collide 3 times it's then game over ?

kirtnicholls
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 31st Jan 2012 09:38 Edited at: 31st Jan 2012 09:39
Yes, just have a variable that you assign a value to, then when something happens like your character dying you can just reduce the value of the variable:

Obviously this is a simplified version...

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 31st Jan 2012 15:59
Quote: "I was wondering if it is possible to set up a lives system"

Sigh, it's a programming language, it's possible to do anything you want! lol

My signature is NOT a moderator plaything! Stop changing it!
kirtn14
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 31st Jan 2012 16:32
[quote] "Sigh, it's a programming language, it's possible to do anything you want! lol"

I do believe you are wrong there, almost anything lol

kirtnicholls
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 31st Jan 2012 17:16
Mobiius doesn't mean any offence, it does seem to be quite a basic question.

In the DarkBasic Professional forums we have a separate area for 'newcomers' which shields the more experienced users from questions like these that some feel are beneath them

I will make a request for a newcomers area.

Login to post a reply

Server time is: 2024-05-06 08:59:48
Your offset time is: 2024-05-06 08:59:48