forked from team-sg/hero-mark-2
13 lines
246 B
GDScript
13 lines
246 B
GDScript
extends Node2D
|
|
|
|
func _ready():
|
|
scale.x = get_parent().get_node("Player").sprite.scale.x
|
|
|
|
func _physics_process(delta):
|
|
position.x += 4 * scale.x
|
|
|
|
|
|
func _on_Area2D_body_entered(body):
|
|
if body is TileMap or body is StaticBody2D:
|
|
queue_free()
|
|
|