Updated pattern for boss; trying to get it to spawn bullets.
This commit is contained in:
parent
caf2bffb0c
commit
e608652170
24 changed files with 606 additions and 28 deletions
|
|
@ -1,6 +1,6 @@
|
|||
extends Node2D
|
||||
|
||||
var scroll_multiplier: float = 200
|
||||
var scroll_multiplier: float = 400
|
||||
|
||||
@onready var parallax_nodes = get_tree().get_nodes_in_group("parallax_clouds")
|
||||
|
||||
|
|
@ -8,11 +8,17 @@ func _ready():
|
|||
EventBus.cloud_speed.connect(_on_cloud_speed)
|
||||
|
||||
func _on_cloud_speed():
|
||||
$CoffeeBuoy.hide()
|
||||
|
||||
for node in parallax_nodes:
|
||||
if node is Parallax2D:
|
||||
var current_autoscroll = node.get_autoscroll()
|
||||
current_autoscroll.y += scroll_multiplier
|
||||
node.set_autoscroll(current_autoscroll)
|
||||
node.set_modulate(Color(0.40,0.40,0.40))
|
||||
|
||||
var tween = create_tween().set_trans(Tween.TRANS_LINEAR)
|
||||
tween.tween_property(node, "autoscroll:y", scroll_multiplier, 5)
|
||||
tween.tween_property(node, "modulate",Color(0.40,0.40,0.40), 2.5)
|
||||
|
||||
var coffee_dip = create_tween().set_trans(Tween.TRANS_QUAD)
|
||||
coffee_dip.tween_property($CoffeeBuoy, "modulate", Color(0.40,0.40,0.40,0),2.5)
|
||||
coffee_dip.tween_property($CoffeeBuoy, "scale", .25, 2.5)
|
||||
await coffee_dip.finished
|
||||
$CoffeeBuoy.hide()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue