mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
added cool animation to springs
This commit is contained in:
parent
7b67b3aef6
commit
a88727b2d8
13 changed files with 267 additions and 47 deletions
19
Pegs/Yellow/Powerups/Spawn/FromBottom.gd
Normal file
19
Pegs/Yellow/Powerups/Spawn/FromBottom.gd
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
extends Node2D
|
||||
|
||||
func _ready() -> void:
|
||||
global_position = Vector2(0, 184)
|
||||
spawn_animations()
|
||||
$Particles2D.emitting = true
|
||||
|
||||
func spawn_animations():
|
||||
var Sprite = preload("res://Pegs/Yellow/Powerups/Spawn/FromBottomSprite.tscn")
|
||||
var counter = 0
|
||||
while counter <= 12:
|
||||
var sprite = Sprite.instance()
|
||||
add_child(sprite)
|
||||
sprite.play("spawn")
|
||||
sprite.offset = Vector2(counter * 32, -32)
|
||||
sprite.global_position = global_position
|
||||
counter += 1
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue