#yummers health bar

48 messages · Page 1 of 1 (latest)

alpine stratus
#

i’ll make it when i’m on it’s easier than typing

hot sinew
#

yayy

#

is it a health bar where u can take damage?

alpine stratus
#

petty sure yeah

alpine stratus
# hot sinew is it a health bar where u can take damage?

SUB bar.Rot.Y hide.Rot.Y 0.2
FLOOR heal.Pos.Y heal.Pos.Y
DIV R0 -0.01 5
SIN R1 bar.Rot.Y
COS R2 bar.Rot.Y
MUL R1 R1 R0
MUL R2 R2 R0
SUB bar.Pos.X bar.Pos.X R1
SUB bar.Pos.Z bar.Pos.Z R2
SUB heal.Pos.Y heal.Pos.Y 1
EQUAL R3 heal.Pos.Y 0
IF R3 Label1
GOTO Loop
LABEL Label1
SLEEP 1
SET dead.Trg.Force 1
SET dead.Trg.Force 0
LABEL Loop
SLEEP 250
END

#

should work

#

if it don't work for what your trying

#

uhh idk

hot sinew
#

thanks ill try soon!

lavish bane
#

how do u set it up?

alpine stratus
# lavish bane how do u set it up?

1 trigger for what you want to happen when it dies, one back bar for setup and detail then the actual health bar that is smaller than the back bar and put right in front and finally a block at X health which is used for decreasing health
HEAL: health block
DEAD: trigger after death
HIDE: back bar
BAR: health bar
then. another trigger connected to this code block

flint hinge
alpine stratus
#

but later

#

don’t wanna get on rn

flint hinge
#

ok np

jade sparrow
#

.

next wagon
#

how do i take damage?

alpine stratus
#

uhh have a trigger connect to the code block

#

then the code block connected to 1 death trigger

next wagon
#

i did that but i still dont know how to take damage

fluid ether
#

make video

alpine stratus
#

like connects. trigger TO the code block

#

like trigger restarts code

#

then set it to grapple or whatever

#

then do that

#

boom

#

cause code to go

next wagon
#

i have the health bar the back of the health bar the heal block and the death trigger ALL CONNECTED AND RIGHT but still somehow that isnt enough? like i even made the trigger and stuff so what damages me?

#

like you should probably make the video

still orchid
#
FLOOR heal.Pos.Y heal.Pos.Y
DIV R0 -0.01 5
SIN R1 bar.Rot.Y
COS R2 bar.Rot.Y
MUL R1 R1 R0
MUL R2 R2 R0
SUB bar.Pos.X bar.Pos.X R1
SUB bar.Pos.Z bar.Pos.Z R2
SUB heal.Pos.Y heal.Pos.Y 1
EQUAL R3 heal.Pos.Y 0
IF R3 Label1
GOTO Loop
LABEL Label1
SLEEP 1
SET dead.Trg.Force 1
SET dead.Trg.Force 0
LABEL Loop
SLEEP 250
END```
astral raptor
#

wow

alpine stratus
#

SET R5 5
SET R2 210
SET R7 1
DIV R0 R5 5
MUL R2 R2 R0
DIV R2 R2 R7
ADD heal.Pos.Y heal.Pos.Y R7
ADD bar.Rot.Y base.Rot.Y 1
SIN R0 base.Rot.Y
COS R1 base.Rot.Y
DIV R0 R0 R2
DIV R1 R1 R2
ADD bar.Pos.X bar.Pos.X R0
ADD bar.Pos.Z bar.Pos.Z R1
EQUAL R0 heal.Pos.Y R5
IF R0 die
LESS R0 heal.Pos.Y 0
IF R0 die
END
LABEL die
SET die.Trg.Force 1
SET die.Trg.Force 0
END

#

no vid

#

it to big

#

r5 is base health

#

r2 is sensitivity (dont change unless inaccurate)

#

r7 is mult

#

waithe r7 don't work

#

ok it should work now

#

@drowsy ice

drowsy ice
#

Ill try, it soon

alpine stratus
#

i can either explain through text or join your lobby

#

but i know the fix