Sound FX, major work on set schedule, and some new concepts for items and portraits
This commit is contained in:
20
scripts/guild_facade.gd
Normal file
20
scripts/guild_facade.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
extends Area2D
|
||||
|
||||
var overlapping : bool
|
||||
var shift_tween : Tween
|
||||
func _on_body_entered(body: Node2D) -> void:
|
||||
if overlapping:
|
||||
return
|
||||
if body == Game.player:
|
||||
overlapping = true
|
||||
shift_tween = create_tween()
|
||||
shift_tween.tween_property(self, "modulate:a", .5, .25)
|
||||
|
||||
|
||||
func _on_body_exited(body: Node2D) -> void:
|
||||
if !overlapping:
|
||||
return
|
||||
if body == Game.player:
|
||||
overlapping = false
|
||||
shift_tween = create_tween()
|
||||
shift_tween.tween_property(self, "modulate:a", 1.0, .25)
|
||||
Reference in New Issue
Block a user