I'm currently putting together a series of simple boulder-pushing puzzles, and I've got the events working pretty well, but I've run into an issue. I can't figure out how to check if the tile in front of the boulder (where it is going to be pushed to) is passable or not. Of course, if the tile isn't movable, then the boulder simply won't move, but the problem is that the sound effect still plays.
Is there a simple script I can use to check if a certain X/Y coordinate is pathable? The code I'm imagining is:
I'm currently putting together a series of simple boulder-pushing puzzles, and I've got the events working pretty well, but I've run into an issue. I can't figure out how to check if the tile in front of the boulder (where it is going to be pushed to) is passable or not. Of course, if the tile isn't movable, then the boulder simply won't move, but the problem is that the sound effect still plays.
Is there a simple script I can use to check if a certain X/Y coordinate is pathable? The code I'm imagining is:
Switch0001 = isPathable(rock.x, rock.y + 1)
Share this post
Link to post
Share on other sites