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 / Bullet code help,taking away enemies health

Author
Message
Daniel wright 2311
User Banned
Posted: 25th Nov 2011 04:34
how can i add this to my code so it takes health from my enemys,the problem im having is my bullets cant collide becouse there being deleted, plus there bolth arrays.

my code i need added

if object collision (x,enemy(e).estates)=1
dec enemy(e).ehealth
endif

to this



my signature keeps being erased by a mod So this is my new signature.
Daniel wright 2311
User Banned
Posted: 25th Nov 2011 04:50
never mind, i figured this out all on my own.



my signature keeps being erased by a mod So this is my new signature.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 25th Nov 2011 11:25
Please comment code ».«

or how and where or where... you found the solution... explain how the code workd for others to benefit... thanks in advance...

And to others reading this... if you know a more efficient method... post it please.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 25th Nov 2011 14:55
Quote: "Please comment code ».«"


Hi guys. I have this piece of code that do the same.




Cheers.

I'm not a grumpy grandpa
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 25th Nov 2011 15:25
Also Daniel wright 2311 I think you know not to double post >.< just edit your original post...

@chafari
Nice

Login to post a reply

Server time is: 2026-07-10 03:59:49
Your offset time is: 2026-07-10 03:59:49