mirror of
https://github.com/Steffo99/cinnos.git
synced 2024-11-24 09:04:21 +00:00
11 lines
176 B
GDScript
11 lines
176 B
GDScript
extends Area3D
|
|
class_name Trampolino
|
|
|
|
|
|
@export var power: float = 60
|
|
|
|
|
|
func _on_body_entered(body):
|
|
if body is Player:
|
|
body.velocity.y += power
|
|
$Coll/Part.emitting = true
|