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 / how can I make my character blink?

Author
Message
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 19th Oct 2011 10:56
Hi guys. Its me again. How can I make my character blink every time he hits by the enemy?? When my character hits the enemy it decreases it's Life Points. But, it has no sign that it hits by the enemy. So I wanna make my character blink just for 2 seconds, just like the other games when it hits by the enemy. Please share if you have any idea. Thank You ...

i have a problem in darkbasic codes. pls help me
Quel
17
Years of Service
User Offline
Joined: 13th Mar 2009
Location:
Posted: 19th Oct 2011 11:11
Switch fast between hide & show object.

-In.Dev.X: A unique heavy story based shoot'em ~35%
-CoreFleet: An underground commander unit based RTS ~15%
-TailsVSEggman: An Sonic themed RTS under development for idea presentation to Sega ~15%
Grog Grueslayer
Valued Member
21
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 19th Oct 2011 11:40
You can try making a copy of the character with a solid yellow color (or whatever color you like) and switch between that and the regular multi-colored character.

Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 19th Oct 2011 13:53
Wow! I didnt think of that idea. Well, I will try it. Thanks a lot Quel and Sir Grog

i have a problem in darkbasic codes. pls help me
Hello Everyone !
14
Years of Service
User Offline
Joined: 1st Sep 2011
Location:
Posted: 19th Oct 2011 17:19
Grog. Can you give me some sample pictures or sprites what you are telling me?

i have a problem in darkbasic codes. pls help me
Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 19th Oct 2011 17:43 Edited at: 19th Oct 2011 17:44
you could also switch very fast between diffuse color rgb(255,255,255) and rgb(255,0,0).
That way your object will blink red every time it's hit

TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Oct 2011 18:21
What Brendy boy and Grog are saying in code form.



TheComet

Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 22nd Oct 2011 12:26
You could re-texture the object?

My signature is NOT a moderator plaything! Stop changing it!
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 22nd Oct 2011 12:39
Quote: "You could re-texture the object?"


Yeah , This is the best way !!



Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-11 11:40:33
Your offset time is: 2026-07-11 11:40:33