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.

DarkBASIC Discussion / learning Variables.

Author
Message
Lover of games
20
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 30th Jul 2006 17:45
This might be a waste of a post but i'd like to say that i think i almost got the variable thing down. I was experimenting and actually made my own health counter. Now this isn't a big deal to some of you guys as ur seasoned pros. But for me it's a sort of a big leap for me. I was going to ask how to stop the counter from going below zero but i figured it out. This post is not meant to say i'm better then any of you. if it sounds that way, I apolozise.

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 30th Jul 2006 18:23 Edited at: 30th Jul 2006 18:24


i think that might work.. just replace yourvariable# with the variable you're using.. oh yeah.. remember to put this into the do loop.. i havent done this in a while... so i might be wrong..

Lcf - Lucifer, Ruler OF All Darkness...
Lover of games
20
Years of Service
User Offline
Joined: 17th Apr 2005
Location:
Posted: 30th Jul 2006 22:17


I already did that it worked out great!

"Originally I was going to have a BS on it but you know how that would be. I can't walk around with the letters BS on me." More or less a qoute by Syndrome from Jack, Jack, attack
The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 30th Jul 2006 22:41 Edited at: 30th Jul 2006 22:41
Quote: "If yourvariable# > 0 then yourvariable# = 0

i think that might work.. just replace yourvariable# with the variable you're using.. oh yeah.. remember to put this into the do loop.. i havent done this in a while... so i might be wrong.."



Well.. In that code, you're telling the variable to stay at 0 if it's bigger than 0... Hehe.

You're using the wrong sign. It should be like this:


Stupot
18
Years of Service
User Offline
Joined: 13th Jul 2006
Location: East Sussex
Posted: 30th Jul 2006 22:42
Quote: "This post is not meant to say i'm better then any of you. if it sounds that way, I apolozise."


Not at all, man. I didn't read it that way... As a newbie myself I find it difficult to ask questions about things that you know other people see as the basics... but i think as long as you show that you've had a go yourself before coming straight to the forums then people tend to be a lot more helpful.

I've found the guys on this board to be extremely helpful, especialy Pincho who seems to have helped in solving all of my queries so far without so much as a tut... remember everyone was a newbie once and without fresh interest in Darkbasic, it will eventually die out, which none of us want to happen just yet.

-Stu

Login to post a reply

Server time is: 2025-05-25 08:26:28
Your offset time is: 2025-05-25 08:26:28