fix rotation
This commit is contained in:
@@ -3,15 +3,15 @@
|
|||||||
importer="texture"
|
importer="texture"
|
||||||
type="CompressedTexture2D"
|
type="CompressedTexture2D"
|
||||||
uid="uid://baeea1yfs0cnn"
|
uid="uid://baeea1yfs0cnn"
|
||||||
path="res://.godot/imported/Tutorial_shield.jpeg-d9b563c9ca34dc1a19e82a0ec964c1b9.ctex"
|
path="res://.godot/imported/Tutorial_Shield.jpeg-6b96e6b9716aced42153397e827ce868.ctex"
|
||||||
metadata={
|
metadata={
|
||||||
"vram_texture": false
|
"vram_texture": false
|
||||||
}
|
}
|
||||||
|
|
||||||
[deps]
|
[deps]
|
||||||
|
|
||||||
source_file="res://assets/Tutorial_shield.jpeg"
|
source_file="res://assets/Tutorial_Shield.jpeg"
|
||||||
dest_files=["res://.godot/imported/Tutorial_shield.jpeg-d9b563c9ca34dc1a19e82a0ec964c1b9.ctex"]
|
dest_files=["res://.godot/imported/Tutorial_Shield.jpeg-6b96e6b9716aced42153397e827ce868.ctex"]
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
|
|
||||||
|
|||||||
@@ -396,6 +396,9 @@ func _enter_stun() -> void:
|
|||||||
func _enter_chase() -> void:
|
func _enter_chase() -> void:
|
||||||
state = State.CHASING
|
state = State.CHASING
|
||||||
mat.albedo_color = COLOR_CHASE
|
mat.albedo_color = COLOR_CHASE
|
||||||
|
mesh_node.rotation.y = 0.0
|
||||||
|
mesh_node1.rotation.y = 0.0
|
||||||
|
mesh_node2.rotation.y = 0.0
|
||||||
|
|
||||||
func _take_hit(dmg: int) -> void:
|
func _take_hit(dmg: int) -> void:
|
||||||
if state == State.DEAD:
|
if state == State.DEAD:
|
||||||
|
|||||||
Reference in New Issue
Block a user