i want it to run yellow_crumble() which comes from the argument effect not literally effect()
If effect is a method why are you instancing it?
You can call any method by its name string using call() object.call("method_name")
object.call("method_name")
@xyz effect starts an animation on the "current" scene and its that animation i am trying to instance
It's hard to tell what's going on without seeing all of the code, particularly how make_effect2() is called.
@xyz i am basically trying to play an animation that exist in a different scene in my main game window i preload the yellow_crumble scene which has these in it then i instance it and animation plays at the given location i could just remove the 370 put the $ap.play line in the func _ready but i dont want to create a new scene for every single animation in that case its just var current=effect.instance meaning var current=instance yellow_crumble scene set its position and add it as child
@xyz the problem was in the way make_effect2() was called i was trying to convert an object into a string :scream: here is how i fixed it thank you so much :heart: