![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Arielrandal |
Hello, sorry if i didnt explain well in the title, but i am making a slime kind enemy, im trying to make it divide after being shot, and then reduce his size, ive already solved the size thing, but im having problems into make it divide, i saw a post in godot related to this and i used
var Slime = PackedScene.new() Slime.pack(self) var slime = Slime.instance() var scene_root = get_parent() scene_root.add_child(slime)
It does divide the slime, but it ends with a small one and a normal size one, the question is, how can i store the size variable to replicate it in the child? sorry i think i still cant explain myself well.