I think it maybe the graphics not updating because when I put "show text" to same event the showpics started appearing
(And why is the window on top left corner now)
The plot thickens. So, now the images show up unreliably if you just use the script you posted earlier, but reliably if you add a show text message after them? For me they showed every time (unless of course the player was too far away from 0,0).
I'm not sure what that refers to.
Well, that's a lot of images you're showing at once. You could speed it up by just drawing a shape directly rather than loading a file over 50 times, or manually make an image for each possible range, and just show that one image.
Interesting. Mine's still in the middle of the screen by default.
for(let i = 1; i < 60; i++)
{
$gameScreen.showPicture( i, "Move", 0, ($gamePlayer.x + i) * 48, ($gamePlayer.y + i) * 48, 100, 100, 155, 0);
}
Well, it probably should, but I'm not entirely sure how the cache interacts with images loaded through direct calls to
$gameScreen.showPicture.I don't think I can really help you here - I've ran that code earlier with a couple more 0s added to the iteration count and it worked fine. If this is in your main project, it's likely something else there interfering with it. If it's in a completely fresh project, I have no idea what could that be.
@Jar1, please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/showpicture-crash.162857/