Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Reload a cached image from file?

Let's say I have an image cached, like a charset.
Let's say that somehow I've modified the file, and I need it to reload the file with a call script. (Without changing maps).

I've looked through the code, and I've looked searched the forum, couldn't really find anything.

Can someone help me? It's for a new script, will be released as soon as I get this functionality integrated.
 
If I understand correctly, you want to refresh an image that you opened with
@bitmap = RPG::Cache.whatever(file) ?

Can't you just do
Code:
 

@bitmap.dispose

@bitmap = nil

@bitmap = RPG::Cache.whatever(file)

 
?

I'm sorry if I misunderstood, please tell me if that isn't what you want.
 
I had a blonde moment. But yeah, that's it. If you don't refresh it, it has this beautiful fading animation.

Near, you're going to love this next script. I'll have it up in a minute. Thanks.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top