Hi all, just wondering if there is an easy way to add a "circle of light effect" to the map to make the area outside of the circle dark or black.
I thought about maybe making a very large black .png with a transparent center and centering that on the player object but I'm not 100% sure how to do that.
You already explained the simplest way of doing that. Just display it with the "show picture" command.
If your map is big enough and the player always stays on the center, a single show picture command is enough.
That requires you to have some map area at all end where the player can't go however, because when the engine detect the player to be near the map border, it allows the player sprite to go off-center.
And if the player sprite can move position on the screen, your picture needs to be updated by parallel processes (which add to lag)
I've got the picture sort of working but it's not centered on the player like I thought it would and it doesn't follow correctly, moving only a pixel at a time instead of a tile at a time.
Several mistakes:
map xy are map coordinates, show picture uses pixel coordinates.
you'll need to use screen x and screen y
additionally as I said as long as your maps are big enough, you don't need the picture to follow the player - you can fix it to the center of the screen