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

14 lines
347 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
More animations - Implemented firebolt animation - Started on icy wind animation - Added animation to health bars - Improved the animation system more - Cleaned up some code
2024-05-14 21:40:18 -04:00
var barSize: Vector2 = Vector2(20, 100)
var tween: Tween
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:
More animations - Implemented firebolt animation - Started on icy wind animation - Added animation to health bars - Improved the animation system more - Cleaned up some code
2024-05-14 21:40:18 -04:00
if (tween): tween.kill()
tween = create_tween()
barSize.y = (health / maxHealth) * 100
tween.tween_property(bar, "size", barSize, 0.3)
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 106ms Template: 2ms
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