mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-06 07:50:22 +01:00
8 lines
139 B
GDScript
8 lines
139 B
GDScript
extends Area2D
|
|
|
|
export var y_direction = 1
|
|
|
|
func _on_area_entered( area ):
|
|
if area.get_name() == "ball":
|
|
area.direction.y = y_direction
|