Referencing any Region

noxtudios

  • Posts: 293
I would like my actor to change layers when entering a region, I have lots of regions that do the same thing.
I have been searching for solutions on this all afternoon, and finally had to post a question..

Is there any way to specify any region using events, rather than actually having to choose a region in a scene.

I currently have 2 events for one region (Region 0)

1 event for entering a region 0 - thus changing layer of the player actor
1 event for leaving a region 0 - thus changing the layer of the player back to the original layer.

I have this working on 1 region currently (region 0), but need it to happen across all regions throughout a scene.

other than having loads of enters region and leaves region events, specifying all the regions in a scene. I'd like to have just 2 events that trigger on any region.. Is this possible?

SadiQ

  • Posts: 1795
It involves code, so if you're up to it take a look at the "Draw regions" premade behaviors. The code there can get all the regions available in the scene.
Proud member of the League of Idiotic Stencylers! Doing things in Stencyl that probably shouldn't be done.