3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2]

Author Topic: Sprite Health Bar  (Read 2551 times)

« Reply #15 on: June 18, 2014, 04:41:41 AM »
can you help me how to add a heal system
« Reply #16 on: June 24, 2014, 11:33:22 PM »
I can give you the basic idea without actually doing it for you.

First you need a multi-frame sprite, use PNG or DDS formats if you want some transparency.

Then you can use a counter object which can either count up to a value for heath or damage, or you can count down to enough for death.

To use these together you could use a script object and have the counter displayed value passed to the health sprite as the display animation frame.

To trigger this health bar you would need to use collisions to start (trigger) the counter object, which would count up or down 1 value and at the same time cause the sprite frame to change, indicating a health change...

It's not to hard to set up.. i think there actually may be a included 3drad project that has a healthbar setup already...

Have you played with the included sample projects that came with 3drad yet... you'll get lots of ideas from those how to do things.
« Last Edit: June 24, 2014, 11:35:19 PM by TinSoldier »
« Reply #17 on: June 25, 2014, 05:10:28 AM »
Quote
First you need a multi-frame sprite,

the first thing he needs is logic...

he needs to determine what will be the health policy of the object...  what will cause damage to the object, how much damage will be applied per event, how much damage the object can sustain before "dying"... and how any health remedies will be applied...

most people would  rush to start adding objects in a wild and uncontrolled spasm of mouse clicks, which would only end in frustration... sorry Tin, but without knowing why you're adding a "multi-framed sprite" will only lead to frustration and confusion...

get the logic and policies written down first... think... then develop...


--Mike



« Reply #18 on: June 25, 2014, 10:55:44 AM »
Actually mike i disagree... for me anyway.. i would prefer to put together a working simple healthbar, not worrying about the logic of how or why it's working the way it is just yet..

Not to mention the healthbar is a pretty basic setup.., of course you can get fancy with it's design if you wanna go that route.. but if you don't know the basic process to begin with, you'll likely have problems with your fancy design.

He's learning, get one working first then apply logic and modify it to work the way you need it too...

That's how i would go about it...
« Reply #19 on: June 25, 2014, 11:12:52 AM »
PS holaoolla ..

If you haven't yet, make an account on http://www.3dfoundry.tk/forum

if you havent seen this topic yet http://www.3drad.com/forum/index.php?topic=10838.0  you should read it, cause at the end of this month this 3drad forum will not allow posting messages or replies anymore, so you wont have options here for help or support.  ( other than reading already posted forum messages ).

That and how long till the 3drad forum & or 3drad.com go off-line all together.. Fernando is the only one who knows that.
« Reply #20 on: June 25, 2014, 04:23:34 PM »
Quote
Actually mike i disagree...
of course you do Tin... ask me am i surprised  ;D

ok, lets do it your way... wait a sec, i don't see a healthbar object on the 3DRAD object palette...
i guess you're talking about a valueLabel object... right...

ok... we put one up there... now what...
say we link it to something... what do we do next...

are ya startin' to see what i mean when i say logic first...
ya gotta have a plan... a direction... ya gotta know where you're going before you start going there...

you're solution is to immediately plop an object on the screen...  no rhyme or reason why...

Quote
He's learning, get one working first then apply logic and modify it to work the way you need it too...
sorry bud, but that's just ass backwards thinking...  how are ya gonna get something up and running if you have no idea what you want it to run towards...

you're not even sure you know what he wants to develop... you don't even know if he's sure what he wants to develop...  he asked about a "heal system"... what the heck is dat...  is it something where a player's avatar magically gets healed... or does he just want a simple health indicator... what will affect the health...

these are all the things that should be worked out before you start plopping down graphical user interface objects onto the screen...

doesn't that just make sense Tin...

from what i've read in the initial post, we have a person here who has seen a video game with a health indicator for the primary antagonist... and he wants to implement the same thing in his game... he wants to know how... your way is to have him believe in magic...  that it'll magically appear if you add this and that... well, that's not how it works... he's gonna have to learn from the start that there is no magical solutions... the things you see on the screen in any video game are the result of a clear and logical thought process of the developers...

ya really wanna help him... teach him that from the start...


--Mike




« Last Edit: June 25, 2014, 04:33:34 PM by Mike Hense »
« Reply #21 on: June 25, 2014, 09:45:22 PM »
@holaoolla  we need more detailed information on what your trying to do ? or where exactly your having the problem and need the help ?.
Pages: 1 [2]