Hey
$game_player.x == $game_map.events[2].x &&
$game_player.y == $game_map.events[2].y
The above script was provided by another friendly user, but it seems to be for VXAce, was wondering if anyone knew how to make it work in MV or has a similar script of their own.
The script is simply for the conditional branch "If" player xy = event xy
Thnks
Jacob
Yay the original bug is gone so can now start the scene but...
How do I make the event want to occupy the same space as the player
I have it on approach, but even on "through" it can't pass through the character to enter the same co-ordinate set off the script.
Thanks for any additional help
Show us a screenshot of the event then and how you control it - there are several things that could be the cause depending on what you did with the event.
Got it to work now, but now cant get the game-over to occur when they occupy the same space This is the parralell event to the side which carries the script for the game over scenario.
[IMG]http://puu.sh/nYl5a/509a7c7b0e.jpg[/IMG]
Parallel process events loop by default, so you can get rid of the loop/repeat.
Try using === instead of ==. There's a difference between the two in javascript, and I find === more reliable if you just want to compare two values (I still don't understand the exact difference and why you'd want to use one rather than the other - I just know === works when sometimes == doesn't)
Why don't you just set the event that's approaching the player to Event Touch and put the Game Over command in it?