I am trying to duplicate a node that I've made via code. The idea is that frogs should appear on the screen at random intervals. I try this code but it doesn't draw the frog, it also doesn't give any errors and it does successfully change the new node's position even though it doesn't appear to exist.
Also I cannot create it as a child node as the parent node gets erased once it hits a certain point or gets destroyed via command.
var frog1 = new Frog();
Vector2 frog1Pos = new Vector2(900,100);
frog1.Position = frog1Pos;
Can anyone help me to do this properly?
Thanks!