Logo
Explore Help
Sign In
nolan/Raise-Your-Wand
1
0
Fork 0
You've already forked Raise-Your-Wand
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Raise-Your-Wand/Scripts/healthBar.gd

9 lines
216 B
GDScript3
Raw Normal View History

Background and UI - Got new backgrounds - Added health bars - Added in enemy wizard using the wizard spellbook rather than the old spellbook - Made the cast indicator smaller since it seemed a bit large - Started working on enemy AI systems - Fixed rock throw animation
2024-05-07 21:43:09 -04:00
class_name HealthBar extends Control
@onready var bar: ColorRect = $ColorRect2
@export var maxHealth: float = 1
Main Menu, music, and credits - Got sprites for menu buttons - Added buttons to the menu - Added a manager script for the menu - Created resources for playlists and credits - Created a music player - Created the root scene that everything will be loaded into
2024-05-09 22:21:58 -04:00
func healthChanged(health) -> void:
Background and UI - Got new backgrounds - Added health bars - Added in enemy wizard using the wizard spellbook rather than the old spellbook - Made the cast indicator smaller since it seemed a bit large - Started working on enemy AI systems - Fixed rock throw animation
2024-05-07 21:43:09 -04:00
print("Health Changed")
bar.size.y = (health / maxHealth) * 100
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 31ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API