1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-25 17:44:21 +00:00
cinnos/Trampolino.gd

12 lines
176 B
GDScript3
Raw Normal View History

2023-11-25 17:08:00 +00:00
extends Area3D
class_name Trampolino
@export var power: float = 60
func _on_body_entered(body):
if body is Player:
body.velocity.y += power
2023-11-25 17:36:17 +00:00
$Coll/Part.emitting = true