loading images from URL, how to know when its over?

0 favourites
  • 6 posts
From the Asset Store
Elevate your games with our AI Chatbot Integration! Seamlessly connect your Construct 3 projects with GPT-4 for dynamic,
  • Hello

    I have small problem, i am downloading images from server and use paster to display them.

    all works ok but if i download 100 of images normaly it takes some time to download all the way to the last one.

    Now mine problem is how to determine when is the last image downloaded and job is done?

    I want to add loading gif that gets destroyed on finish.

    If i set mine action simply in the next event it is executed instantly even though download is still in progres.

    thanx!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • As mentioned in the sprite manual article you have access to a "On image URL loaded" trigger that will trigger once the current image is finished loading.

  • Kyatric

    Thank you, i know that... but since i use paster... theres no such trigger...

    And if i use sprites, than i can't (or atleest i dont know how) set different images on different instances of the same sprite.

    (notice: i can do that as long as i don't move instances... but i swipe them left and right).

  • In that case I guess you should ask R0j0hound to add the trigger to the paster plugin (if I understand correctly you are loading images from URL in that third-part plugin).

    Or ask your specific question in the thread of the plugin since it is related to its use.

  • Kyatric

    Thank you.

    I was mentioned in first post that i use paster.

    And i was thniking that there might be some common way to get that information.

    Ill try to contact R0j0

    R0J0hound

    May you help me with this problem?

  • Until I add such a trigger you could use a sprite to do all the loading and on the loaded trigger paste the image into a paster.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)