Display Picture as a Layer

Hello,

I started to write my own parallaxe plugin cause existing one don't fit my needs.

So I want to show a Picture as a layer.

To keep it on screen, should I really need to do that : 

Spriteset_Map.prototype.updateParMap = function() { this._parMap.bitmap = ImageManager.loadBitmap('img/parallaxes/','basement'); this._parMap.x = $gameMap.displayX() * -$gameMap.tileWidth(); this._parMap.y = $gameMap.displayY() * -$gameMap.tileHeight();};Because, loadBitmap is loading a picture ? So... I'm loading 60 times per second a picture ?

Is this normal ? Or I'm doing something wrong ? Thanks for help !
I've moved this thread to Learning Javascript. Please be sure to post your threads in the correct forum next time. Thank you.


Why doesn't the current parallax script meet your needs?
The image is cached once it is loaded, so don't worry about calling ImageManager.loadBitmap over and over.
Okay thanks and sorry for the wrong forum post 😀

I was using the Kauss parallax script but when a picture is displayed and you go to menu and come back the picture was deleted for some frames. More I hated how files where managed and the plugin does not deal with collision (and I wanted to learn some javascript). So I started to write my own plugin. He is currently working, I just need to add collision now.

Thanks for help 🙂
There are other plugins for overlay that solves the deletion problem. But good job for creating your own 🙂
Thanks 😀

And other plugin I found (like bind picture) or often not compatible with Terrax light plugin which is necessary in my game 😀
For overlay, I use this, because it is very flexible and it has features that I like for my game. There's the Fog and Overlay from Victor too, which is really awesome.

Original thread: https://forums.rpgmakerweb.com/threads/display-picture-as-a-layer.54466/