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 / Bleeding Effect??? (DBC)

Author
Message
Dr Crazy
21
Years of Service
User Offline
Joined: 13th Apr 2004
Location:
Posted: 9th Jun 2004 23:12 Edited at: 9th Jun 2004 23:13
Hey people. How do I make a 'bleeding effect'? What I mean is like when you've killed an enemy I want them to slowly bleed. Here's an example but it doesn't work:


Well there's no errors but it doesn't appear to work.
Please help me!
Cheers,
Nick.

Who dares; wins.
Cian Rice
20
Years of Service
User Offline
Joined: 8th Jun 2004
Location:
Posted: 10th Jun 2004 01:37
I think we need to see more of the snippet to help you, improve upon your code, for instance is the object listed, a spec of blood?
I'm a noob, but I still think it would help...

Got anime?
I do.
Night Giant
21
Years of Service
User Offline
Joined: 26th Jul 2003
Location:
Posted: 10th Jun 2004 07:04
is that entire code in your main loop, if so the reason it is not working is because you are setting scale# to 150 and timer to 2500 every loop. you need to set scale# and timer once at the time of death.

oh, wow. insignificantpunks.cjb.net.
no: website for progs yet.
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 11th Jun 2004 19:21
I think you have to do it like this


Timer=2500
Scale#=150

Do

If EHealth=0
Dec Timer
If Timer > 0 Then Inc Scale
Scale Object 220,Scale#,150,Scale#
EndIf

Loop

Login to post a reply

Server time is: 2025-05-25 04:39:40
Your offset time is: 2025-05-25 04:39:40