Detect when a helper leaves the stage bounds? (Read 720 times)

Started by Ellye, October 17, 2020, 10:32:26 AM
Share this topic:
Detect when a helper leaves the stage bounds?
#1  October 17, 2020, 10:32:26 AM
  • avatar
    • Brazil
I'm trying to figure out what trigger can I use to detect when a Helper leaves the stage.

My character summons helpers that move slowly across the screen - I want to call DestroySelf on them after they have completely left the stage.

I've seem many triggers related to the screen position and the screen camera, but I haven't found a way to get the stage leftbound or rightbound values to compare it to.
Last Edit: October 23, 2020, 08:28:13 AM by Ellye
Re: Detect when a helper leaves the stage bounds?
#2  October 19, 2020, 12:10:59 PM
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
Stage or screen? Screen is very easy. Use backedgedist or frontedgedist.

Stage is slightly harder. I can't recall if there is anything that lets you work out if you've left the stage bounds horizontally. You could base it on a timer which ccounts up the further the root is from the helper. Decent basis for will never see again.

In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Detect when a helper leaves the stage bounds?
#3  October 23, 2020, 08:27:57 AM
  • avatar
    • Brazil
It was stage that I wanted, indeed.

Thanks for the reply, I ended up settling for using screen space instead then.