Need help with event that changes graphs
RPG Maker VXAce Supportseveral ways are possible.
I suppose you want the player to push the blocks into their position?
Then make every block an event, have it react to action button.
When button pressed, check player facing or player position to determine the direction into which to move the event
after the move, check if it's on the correct position - if yes, self-switch to another page to prevent further movement and count up a variable.
When that variable reaches 4 (all blocks counted up) declare the puzzle solved
I suppose you want the player to push the blocks into their position?
Then make every block an event, have it react to action button.
When button pressed, check player facing or player position to determine the direction into which to move the event
after the move, check if it's on the correct position - if yes, self-switch to another page to prevent further movement and count up a variable.
When that variable reaches 4 (all blocks counted up) declare the puzzle solved
You don't need to check the player's direction - just use the Move Away From Player command.
Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-event-that-changes-graphs.18088/
