YesNoOk
avatar

Detect when a helper leaves the stage bounds? (Read 2412 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
    • network.mugenguild.com/cyanide/
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.