mirror of
https://github.com/Steffo99/cinnos.git
synced 2024-11-22 08:04:20 +00:00
12 lines
162 B
GDScript3
12 lines
162 B
GDScript3
|
extends Area3D
|
||
|
class_name Trampolino
|
||
|
|
||
|
|
||
|
@export var power: float = 60
|
||
|
|
||
|
|
||
|
func _on_body_entered(body):
|
||
|
if body is Player:
|
||
|
body.velocity.y += power
|
||
|
queue_free()
|