How to make Health bars in Algodoo

  Рет қаралды 2,124

LeoLiMarbleRace

LeoLiMarbleRace

Күн бұрын

check out my channel: / @leolimarblerace4391
into: (0:00)
Part 1 Connecting the marble and Health bar: (0:18)
Part 2 Making the Health bar display statistics: (1:54)
Part 3 Fixing the Health bar's position: (4:15)
Part 4 Turning this into a real marble race: (5:56)
outro: (8:12)

Пікірлер: 16
@CyanBeast01
@CyanBeast01 Жыл бұрын
For the health bar, here is an alternate method: postStep = (e)=>{ pos = [_min + ((_max - _min) / 2.0) / _maxHP * _currentHP, pos(1)]; size = [_size / _maxHP * _currentHP, 0.25]; colorHSVA = [120 / _maxHP * _currentHP, 1 , 1 , 0.5]; } _min is the left x position of the HP bar. If you don't know what that means, just take the *x pos - x size / 2.0* _max is the right x position of the HP bar. If you don't know what that means, just take the *x pos + x size / 2.0* _size is the x size _maxHP is the maximum HP _currentHP is the current HP Note 1: x size means the first index of the size. Like if size is [-5, 16] then x size is -5 and y size is 16 Note 2: if your max HP is say 100, make sure to put _maxHP = 100.0. There is a weird thing in algodoo that if you do 31/10 it will return 3 instead of 3.1. To fix this, you need to do 31/10.0 :)
@LighterRacer1634
@LighterRacer1634 5 ай бұрын
how are you so good at scripting?
@CyanBeast01
@CyanBeast01 5 ай бұрын
...
@LighterRacer1634
@LighterRacer1634 5 ай бұрын
@@CyanBeast01 uhm
@Lilacmymy7
@Lilacmymy7 27 күн бұрын
Perfect script
@IrwinEthanRotil300
@IrwinEthanRotil300 Ай бұрын
Thanks for the tutorial brother
@Lilacmymy7
@Lilacmymy7 27 күн бұрын
You can hack for bars
@liBlanca-ii7ve
@liBlanca-ii7ve Жыл бұрын
tysm!! i learned how to make a tuna fish game with this method! ps i subbed!
@Namsterste
@Namsterste 4 ай бұрын
Thanks for tutorial Nice tutorial
@vuongnguyenminh4368
@vuongnguyenminh4368 Жыл бұрын
Bro this guy deserve more subcribe then this!
@roadto5000subs
@roadto5000subs 9 ай бұрын
6:15
@liBlanca-ii7ve
@liBlanca-ii7ve Жыл бұрын
i had no idea how to code and this didnt help me much, tysm! im subbed! i even learned how to make a tuna fish game with this method! :D
@davidulisescarreonyee5619
@davidulisescarreonyee5619 5 ай бұрын
_
@davidulisescarreonyee5619
@davidulisescarreonyee5619 5 ай бұрын
;
@wilbertsohrweide9405
@wilbertsohrweide9405 Жыл бұрын
'promo sm'
MARBLE Race DESTROYS 99.58333% of Marbles! - Marble World
18:45
6 Developers make a Game Without Communicating
15:00
Jackson Academy
Рет қаралды 156 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
Khóa ly biệt
01:00
Đào Nguyễn Ánh - Hữu Hưng
Рет қаралды 21 МЛН
버블티로 체감되는 요즘 물가
00:16
진영민yeongmin
Рет қаралды 94 МЛН
Was ist im Eis versteckt? 🧊 Coole Winter-Gadgets von Amazon
00:37
SMOL German
Рет қаралды 23 МЛН
Team marble race in Algodoo
9:01
Marble Time
Рет қаралды 2,1 МЛН
I Made a Zero Player Game
12:30
Sam Hogan
Рет қаралды 10 МЛН
How to make a bowl in algodoo | for beginner
3:37
BACHalgodoo
Рет қаралды 121
Animation vs. Geometry
9:17
Alan Becker
Рет қаралды 4,5 МЛН
Can I Escape YOUR Crazy Minecraft Prisons?
19:47
Crave
Рет қаралды 971 М.
Growing Tree Battle in Algodoo
9:07
MIKAN
Рет қаралды 8 МЛН
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 3,9 МЛН
How to make shooting marble races in Algodoo
9:13
LeoLiMarbleRace
Рет қаралды 123
How To Make The Solar System In Algodoo
3:14
MarbleTube
Рет қаралды 4,3 М.
Zombie Castle Survival
10:53
Max Marble
Рет қаралды 1,4 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27