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 Professional Discussion / Yet another question on arrays, hiding objects

Author
Message
Daniel wright 2311
User Banned
Posted: 2nd Apr 2011 04:52 Edited at: 2nd Apr 2011 04:52
Ok, So I finally got my last problem solved to run into one more,lol.Now that all my objects are following me sepretly and following there own animations I cant seem to figure out how to hide each one after they die. I have made a array that takes there own health away sepretly and this works fine, but when I go to hide the modle that has died Nothing happens, here is my code,Thanks for your help



my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 2nd Apr 2011 06:37
No one? If I cant get an answer I'll check back tamorrow, Im getting a little sleepy.

my signature keeps being erased by a mod So this is my new signature.
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 2nd Apr 2011 09:20


Lolz. Use arrays again. Look:





Also, i don't know what for is hide object 4 while you need to hide only nights Also, from what i see this if enihealth(nights)=0 then killed1(nights)=1 makes them die so why if killed1(nights)=1
show object 4
you show them here, while they should die and be hide object nights instead of show object 4?

Daniel wright 2311
User Banned
Posted: 2nd Apr 2011 09:59 Edited at: 2nd Apr 2011 10:00
No, lol, Object 4 is The animated effect im showing when they die, so, if nights dies show object 4, then after the wait timer every thing is hidden, thanks, ill try it out.

my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 2nd Apr 2011 10:14
It still does not work, nothing is happing at all when there health hits 0, the effect does not even dissiaper, here is my whole code in this loop of for next, look at it and mabey some one can help me n this, all the timer does is repeate its self over and over.

top of code




my signature keeps being erased by a mod So this is my new signature.
kamac
15
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 2nd Apr 2011 10:34



Try changing that to around 500. 30 is too less time ( less than a second in this case, i think )

Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 2nd Apr 2011 16:32
Stop using 'lol' so much, no stop using it at all, it is the stupidest thing.
Daniel wright 2311
User Banned
Posted: 2nd Apr 2011 20:01
@Quel



On A MORE serioes note, I found the loop problem, if EnemyHealth(nights)=0 will always =0 cousing the counter to loop, so i fixed that, but still, No matter what I do My object nights will not hide, PLEASE HELP ME SOMEONE.

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-11 14:56:23
Your offset time is: 2026-07-11 14:56:23