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.

Code Snippets / [DBP] - RPG damage numbers

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Sep 2012 04:30 Edited at: 23rd Sep 2012 04:30
Or what I call text "poppers"! (cause I didn't know what else to call the array)

Ever played a game where every hit you land (or take) shows the amount of damage pop up over the character's head? Yeah, that's what this snippet does.




"You're not going crazy. You're going sane in a crazy world!" ~Tick
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 23rd Sep 2012 16:20
You ARE LEGEND!!!

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 23rd Sep 2012 23:06
soo many 2D samples in last few months..
you MUST be doing some kind of 2D RPG-type game, dont you?

Advanced Updater for your games!
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 23rd Sep 2012 23:20 Edited at: 23rd Sep 2012 23:23
Most of what I do is 2D, I have more fun with it.

I was about to upload it when I noticed all my extra array code was just essentially creating a queue, so I pulled out half the code and simplified it with the queue commands.

It is timer-based so you don't have to worry about your frame rates. Although, I did notice it was slightly faster at 4k FPS than when I locked it at 60.

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 26th Sep 2012 22:32
This is darn useful - thanks

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Qqite
14
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 2nd Oct 2012 00:24
Just edited it to make it smoothly accelerate.
:3



Ventures of the worlds around us are limited only by our imagination.

Login to post a reply

Server time is: 2024-04-19 21:47:33
Your offset time is: 2024-04-19 21:47:33