Peashooters
This commit is contained in:
parent
161f87da75
commit
68cfe89f1d
47 changed files with 1571 additions and 279 deletions
10
scripts/components/mover.gd
Normal file
10
scripts/components/mover.gd
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
extends Node
|
||||
|
||||
@export_range(0,2,0.001,"or_greater","hide_slider","suffix:tiles/second") var speed : float = 0.2
|
||||
# Used by animation players to control zombie's movement
|
||||
@export var speed_control : float = 0.0
|
||||
|
||||
@onready var parent : Node2D = get_parent()
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
parent.global_position += -parent.global_transform.x * speed_control * speed * delta * FieldParams.TILE.x
|
||||
Loading…
Add table
Add a link
Reference in a new issue