moving off the scene

igpxnaruto4igpxnaruto4 Member Posts: 81
edited November -1 in Tech Support
how do i make it so the actore moves off the scene? i made a "move" and made it move to -26, and then delete itself after 2 secs but its still not working.. any ideas?

Comments

  • gurechangurechan Member, PRO Posts: 211
    What's not working? The move or the delete?

    If the move is working, you can trigger the destroy by checking it's position using a rule and then destroying it when it gets to the location you are happy for it to be destroyed.

    example:

    when: self.PositionX < -26 destroy
  • igpxnaruto4igpxnaruto4 Member Posts: 81
    Thanks but the move isn't working...
  • gurechangurechan Member, PRO Posts: 211
    If you're using the move attribute, you need to make sure the actor is set as movable under its physics attributes.

    If you have gravity applied to the actor, then movable needs to be off, so use interpolate to move the actor.
  • entersimonentersimon Member, PRO Posts: 273
    I'd like to add one thing to what gurechan stated:

    If you don't need the actor to collide with another actor on the screen, use interpolate rather than move because it uses less resources and you'll maintain a higher frames per second.
Sign In or Register to comment.