I'm making a game where an actor has to go to the other side of the screen by using floating steps. Inside my Act method, there is a if statement that removes the actor when it's on the other side. and then there is a method that makes the actor fall when it's not on the ground. when the fall method is after the if statement, 'actor not in the world' error comes up when the actor's on the other side. when it's switched, the error comes up when the actor falls. how do i solve this?

