Ravm Posted April 6, 2013 Share Posted April 6, 2013 Hello, fist than ever, i need to say that i don't speak english or write, what ever, but i'm learning so please try to understand me.Well i'm here because i need to do an a loading screen in my canvas before it get load, mmm i don't know how explain it. I'm doing a multiplayer game, and i have many functions to draw on canvas, but i need that when de browsers load,appears an image in the canvas saying "Please wait Loading Tilesets etc...", and when the browsers load that images, the image "Please wait loading..." disappears.So i need a method or function that tells me if all the images are loaded, and if area loaded, extract the image "Please wait loading", it's like AJAX, when you send an a petition you can use an a gif, and that gif says to the person "Loading"Thanks by your help. Quote Link to comment Share on other sites More sharing options...
yhoyhoj Posted April 6, 2013 Share Posted April 6, 2013 Hello and welcome ! The Image object has a onload method that is fired when the image is loaded Quetzacotl explained how to properly use it here : http://www.html5gamedevs.com/topic/258-images-vs-drawing-canvas/?p=1156 (3rd code piece) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.