Loading Screen Script? + 'drawImage' Error

Allinardo

Dungeon Crawler
Veteran
Joined
Jan 2, 2013
Messages
60
Reaction score
23
First Language
English
Primarily Uses
Hey I know this may be the wrong topic to post this in, but I'm wondering id there are any existing scripts that let you do anything with the loading screen. For example, every time the game loads a different picture is selected for the loading screen. Is this easily doable/has it already been done?


I thought of replacing this line in rpg_managers.js...


Graphics.setLoadingImage('img/system/Loading.png');


With this, since I now have 3 image files called 'Loading1.png', 'Loading2.png', and 'Loading3png'...


Graphics.setLoadingImage('Loading' + Math.ceil(Math.random() * 3) + '.png');


I'm no expert at Javascript so it could be really flawed...I got an error as a result.

Code:
Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The HTMLImageElement provided is in the 'broken' state
Then I tried running it as a common event after the first map loads, and now...well it gives me the exact same error.


EDIT: Realize I posted this in the wrong area. I'll fix that now!
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top