mirror of
https://github.com/Steffo99/looping-for-loops.git
synced 2024-11-25 09:34:22 +00:00
19 lines
394 B
GDScript3
19 lines
394 B
GDScript3
|
extends Node2D
|
||
|
|
||
|
|
||
|
var cb_speed: float setget set_cb_speed, get_cb_speed
|
||
|
|
||
|
func set_cb_speed(value):
|
||
|
for children in get_children():
|
||
|
children.set_cb_speed(value)
|
||
|
|
||
|
func get_cb_speed():
|
||
|
return cb_speed
|
||
|
|
||
|
|
||
|
var randomize_start_position: bool setget set_randomize_start_position
|
||
|
|
||
|
func set_randomize_start_position(value):
|
||
|
for children in get_children():
|
||
|
children.randomize_start_position = value
|