Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | cyromago2 |
So I having this error “Division By Zero in operator ‘%’”, my intention is to get the quantity of children nodes and using them as a parameter to randi
extends Node
func create_meteor(value):
return get_children()[value].duplicate()
func random_meteor():
return get_children()[randi()%get_children().size()].duplicate()
It’s implying that get_children().size()
is equal to 0. Does this node have children attached?
literalcitrus | 2018-02-14 03:21
thank you for, your reply
cyromago2 | 2018-02-14 03:33