#How do I make hearts as a health bar?
1 messages · Page 1 of 1 (latest)
what
Make a heart asset
With as many hearts
as you want there to be
animate it with lost hearts
Make an anim were certain hearts are lost
give it variable
count variable
I'm getting to that part now
Give the asset a number variable
make it so that when the main actor takes dmg, the number will be subtracted by one
the amount of hearts should be the same amount as your health (unless you have like 100 hp), make a lot of animations, each one which one, two or three depleted hearts, make a script =
infinite loop
if [Main Actor Health] = 3
set [heart] = [animation with three hearts
else if [Main Actor Health] = 2
set [heart] = [animation with two hearts]
repeat the same thing blah blah blah
my name is not exi for gods sake
real pro would use tables for that
Mine is a little complex, but I had to use it once cause the game was complexer
nuh uh its cablecrow
i never used tables how do they even work
dude what sre you doing with a screenshot of me
Zardy's maze person
remeove thay
Sure
stop exposing my face to the internet
AHAHA
NO
Looks good to me
it is very handy that's all what you need to know
handy
show me a damn image
also replace the animate thing with switch costume
issues
Cablecrow
?
Me and Worner are friends on Roblox how does that make you feel
thats cool... im not jealous... 𝓲𝓶 𝓷𝓸𝓽 𝓳𝓮𝓪𝓵𝓸𝓾𝓼.
seriously tho thats cool
Trashcan wanna make out?
i dont think you understood well
i barely use arrays i just store everything i need into a one single table and chilling
i also dont know how arrays work
i saw your tutorial and didnt understand a single thing
One of the most beautiful things god has graced upon this world
big smart guys talking about big smart things
They're really easy to understand
You can see them as values
They're basically like stats an asset can have
There are different kinds
Like for instance, there's true/false
or count
They themselves don't do much
yes
That's a bit sad considering how stupidly easy it is to code in je
Well, for me trial and error helped
When hitting a roadblock
Don't immediatly ask discord
just experiment
Fr
It used to be "Don't join you're definitely getting bullied"
but a load of little children have joined in the last few months
So, it's mostly kids spamming cringe
Well guess what
Some might argue that I'm one of the best spriters on je
This was from a few months ago idk been a while
I mean first of all
It requires practice
I know it sounds lame
but it takes time
well show some stuff
No
Honestly mirroring doesn't work that well
So it's a button
What's the line in the middle?
Well, with ui i'd try to simple things down
So for Interact just an I or maybe a plain ol circle
an for running like a simplified silhouette of a boot
I can try something but I'll have to eat first
Ohmaga I love Tloz