Events that only happen in a certain area
Posted: Fri Sep 02, 2011 4:47 pm
Hi.
I'm trying to make an event where if the player actor is standing under a certain actor, and you press "J", a certain event will occur. let's call it "eventX". This would be a simple problem usually, but the thing is, The actor he's supposed to stand under is a tile actor. This makes things more difficult. If I use an event like,
if(player.x == tile.x)
{eventX;}
It won't work. It seems that only the first pixel of the first tile is set as the tile actor's x value.
What I want, is a script that allows eventX to occur when the player actor is under the tile actor, but that it will work on every tile, not just the first one.
I'm trying to make an event where if the player actor is standing under a certain actor, and you press "J", a certain event will occur. let's call it "eventX". This would be a simple problem usually, but the thing is, The actor he's supposed to stand under is a tile actor. This makes things more difficult. If I use an event like,
if(player.x == tile.x)
{eventX;}
It won't work. It seems that only the first pixel of the first tile is set as the tile actor's x value.
What I want, is a script that allows eventX to occur when the player actor is under the tile actor, but that it will work on every tile, not just the first one.