new penny
This commit is contained in:
parent
ccca031ed2
commit
18491453a6
5 changed files with 33 additions and 41 deletions
|
@ -30,18 +30,19 @@ func _ready():
|
|||
if credits: animation_player.play("roar")
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
var sg2083 := get_node(sg2083_path)
|
||||
if sg2083 and sg2083.state == 0:
|
||||
state_chart.set_guard_property("player_dead", true)
|
||||
state_chart.send_event("player_dead")
|
||||
else:
|
||||
state_chart.set_guard_property("player_dead", false)
|
||||
if not out_range_cast.is_colliding():
|
||||
state_chart.send_event("out_of_range")
|
||||
elif in_range_cast.is_colliding():
|
||||
state_chart.send_event("in_range")
|
||||
if fmod(Game.time, 15.0) == 0.0:
|
||||
Audio.play_sound(Audio.a_grumble,Audio.ac_boss)
|
||||
if !credits:
|
||||
var sg2083 := get_node(sg2083_path)
|
||||
if sg2083 and sg2083.state == 0:
|
||||
state_chart.set_guard_property("player_dead", true)
|
||||
state_chart.send_event("player_dead")
|
||||
else:
|
||||
state_chart.set_guard_property("player_dead", false)
|
||||
if not out_range_cast.is_colliding():
|
||||
state_chart.send_event("out_of_range")
|
||||
elif in_range_cast.is_colliding():
|
||||
state_chart.send_event("in_range")
|
||||
if fmod(Game.time, 15.0) == 0.0:
|
||||
Audio.play_sound(Audio.a_grumble,Audio.ac_boss)
|
||||
|
||||
|
||||
func start_push() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue