[ACE] Picture error?

I'm trying to use pictures in my game, but everytime that it gets to the point for them to appear, the bottom right corner of the picture appears in the top left corner, the player crashes, and I recieve the pop-up message:

Script 'Sprite_Picture' line 54: NoMethodError occured.

undefined method 'width' for nil:NilClass

And that's word-for-word, capital-for-capital, lowercase-for-lowercase. What the heck am I doing wrong? If I need to give any further information, I can happily provide such.

Screenshot.png

Screenshot.png
Are you using any scripts? If so, could you post some links to them?
No, no scripts. I'm using Lite, as a matter of fact.
Can you show us a screenshot of your event command, with the Show Picture dialogue opened?
Is this what you meant? I blacked out a bit of the text, y'know, for personal stuff.

Screenshot.png

Screenshot.png
Is it the first picture that has the issue?


The reason it's appearing in the upper left is because you've set the origin to the centre, and told it to display at 0,0. If you want it to fill the screen, either use centre as the origin and calculate the middle of the screen as the location, or set the centre to 0,0 and display it at 0,0.


The second screenshot doesn't match the first. They all say to show the picture at 8,6 but your close-up says 0,0. I didn't want to create ANOTHER Show Picture command - I wanted to see what was in the one already there. To do that, you select the command and hit space, or right-click and hit edit. It's possible there's something in that particular command/setup, so showing a NEW Show Picture command won't help.
Oh yeah, sorry about that-- I changed it just before I took the screenshot. It didn't change a darn thing though. I'll see if your suggestion works.
It worked! Thanks!
nice. Strange that it would throw an error though.


Next time, please don't double post - just edit your last post and add the extra info to it.
Sure thing! Thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/ace-picture-error.40133/