I have a puzzle with several rolling boulders rolling up and down the screen. the player has to get through them without touching them or he gets transferred back to the beginning but only works when facing the boulder. If it touches the side of the player, the boulder just stops. I thought of conditional branches but, they're only player facing choices not contact choices. Thanks
Player touch works only when facing object.
RPG Maker VXAce SupportTry using Event Touch instead. Player Touch only works if the player is intentionally walking into the event, whereas Event Touch will work if the event hits the player regardless of what they're doing.
Honestly, both Player Touch and Event Touch are systematically the same check. XD
Using event touch now works if the player and boulder touch while the player faces right, left or if the boulder touches the player from the top. If the boulder hits the player from below, the boulder will stop. Although, if the boulder stops and then you turn the player to face down, it will work.
Being a right to left puzzle, I don't think anyone would turn the player down.
Being a right to left puzzle, I don't think anyone would turn the player down.
If you're using multiple event pages to make the boulder move up and down, make sure they're all set to Event Touch. If that's not the case then please show a screenshot of your events so we can see what's going on. 😀
The move route may not all show. It is move down x9
move up x9
There are other boulders that move just the opposite at the bottom of the room. Up and then down.
They are all evented the same other than the move route.
I wonder if I should have used the B tile boulder instead??
That's unusual, that should definitely still work. I set up my own project with your event example and it works perfectly from both directions. Maybe make sure that all of your boulders are definitely set to Event Touch?
As a side note, I'd also advise turning on "Skip If Cannot Move" in the Move Route. Since the route can be interrupted by the player, it might put you into a position where the boulder will start trying to move against impassable tiles and it could freeze your game.
As a side note, I'd also advise turning on "Skip If Cannot Move" in the Move Route. Since the route can be interrupted by the player, it might put you into a position where the boulder will start trying to move against impassable tiles and it could freeze your game.
I will definitely check all of that. Thanks for your help.
Have solved the problem. If the boulder was contacting the player from the underneath, the boulder would just stop. By unchecking the boulder's Direction Fix, it works perfectly. Thanks to all for the help.
Have solved the problem. If the boulder was contacting the player from the underneath, the boulder would just stop. By unchecking the boulder's Direction Fix, it works perfectly. Thanks to all for the help.
Original thread: https://forums.rpgmakerweb.com/threads/player-touch-works-only-when-facing-object.169890/