1
Fork 0
mirror of https://github.com/Steffo99/looping-for-loops.git synced 2024-11-28 19:14:20 +00:00
looping-for-loops/Objects/ConveyorBelt/Gears.gd

15 lines
324 B
GDScript3
Raw Normal View History

extends Node2D
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
2020-10-04 14:35:24 +00:00
2020-10-04 18:26:45 +00:00
func _on_ConveyorBelt_cb_speed_changed(_old, new):
2020-10-04 14:35:24 +00:00
for children in get_children():
children.set_cb_speed(new)