I can't seem to make a picture erase after making it.
I was using a dark circle as an image overlay for this cave and I'm unsure how to make it disappear after the player leaves the cave.
What event script could I use to do this?
Image overlay erase problem.
● ARCHIVED · READ-ONLY
-
-
Use the "Erase Picture" command, but remember to type in the number you gave the image through "Show Picture".
-
I'm having a problem with Erase Picture. Whenever I use it, the game crashes, saying:
"Script "Sprite_Picture" line 54: NpMethodError occurred. Undefined method 'width' for nil:NilClass"
I'm no ruby guru but is seems the script's trying to call the width method on a sort of "null pointer" . How is that possibile? -
You've erased a picture that a script still refers to. I'm afraid you'll have to tell us which scripts you're using if we're to be able to help you out :)
-
Sorry, I didn't mention I was not using any custom ruby script. Oddly enough, I solved the problem: I saved my project, closed restarted the program, then I deleted the crashing autorun event, I created it again filing it with exactly the same event commands sequence I was using before, and now it runs flawlessly.
-
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.
(because I'm assuming the OP not coming back to say they were still having problems means the original response was what they needed).
gufino2, next time you have a problem, please create your own thread. Your problem is not even the same one the OP was asking for help with.