- Joined
- Apr 6, 2021
- Messages
- 196
- Reaction score
- 65
- First Language
- English
- Primarily Uses
- RMMV
In my current game, I've been working on a system of spawning and placing furniture. The issue is that I don't know how to check if the event failed to spawn. I'd like to check if the given coordinates are valid beforehand, and if not, avoid consuming the resources and inform the player what went wrong.
Edit: Found a solution.

Edit 2: If you use variables for the coordinates, you need to add .length or it won't work.
Edit: Found a solution.

Edit 2: If you use variables for the coordinates, you need to add .length or it won't work.
$gameMap.eventsXy($gameVariables.value(3), $gameVariables.value(4)).length > 0
Last edited: