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.

Newcomers DBPro Corner / object doesn't appear

Author
Message
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 30th Dec 2004 00:54 Edited at: 30th Dec 2004 01:11
CODE:


If tog=2 then object 3 doesn't show onscreen.
I know it's a problem with this bit of code, not the objects or the value of tog or anything else like that.

I'm using DBC

Am I the only one here who's really confused?
http://db1games.topcities.com
(used to be demonsbreath - apparently my name was too long to have no spaces though)
BN2 Productions
20
Years of Service
User Offline
Joined: 22nd Jan 2004
Location:
Posted: 30th Dec 2004 03:32
what is tog set equal to before this piece of code?
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 30th Dec 2004 03:40
if it's set to 1 then it works fine; if it's set to 2 then it doesn't (the user can change and it is in a loop so it continuously reruns this code)

Am I the only one here who's really confused?
http://db1games.topcities.com
(used to be demonsbreath - apparently my name was too long to have no spaces though)
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 30th Dec 2004 05:34
Quote: "if tog=(t*2)-1"


t*2-1 will never = 2 as t is an integer (1*2-1=1, 2*2-1=3 etc)
so:
Quote: "if tog=(t*2)-1"

will never be true if tog=2


The word "Gullible" cannot be found in any English Dictionary.
demons breath
21
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 30th Dec 2004 18:49
o yeah - did it the wrong way round [img] [/img] it should be t=tog*2-1 or something... thanks...

Am I the only one here who's really confused?
http://db1games.topcities.com
(used to be demonsbreath)

Login to post a reply

Server time is: 2024-11-27 18:48:44
Your offset time is: 2024-11-27 18:48:44