Sprite - Load image from URL

0 favourites
  • 5 posts
From the Asset Store
Minimal Sprite Font with Stroke for Pixel Art games.
  • Sprite name "url_image" - 20 item.

    url_image - vNo 1

    .

    .

    url_image - vNo 20

    Rank_Array.X - 0 ~ 19

    Rank_array.Value - image URL

    System "From each url_image" + url_image "vNo = Rank_Array.CurX+1"

    => url_image "Load image from Rank_Array.At(Rank_Array.CurX,1) (Keep current size, cross-origin anonymous)"

    Rank_Array.CurX => char_d9ffaca46d5990ec39501bcdf22ee7a1.png ~ char_729659671af2b027e3449ccf719a6ebe.png

    result => Last Rank_Array URL Load image

    All are set to the same image.

    Help.

  • Sprite= all instances same texture.

    Try tiled background, or multiple frames on sprite.

  • I do not want to set the same image

    json data load - Array Set.

    for each sprite - url load image

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I do not want to set the same image

    json data load - Array Set.

    for each sprite - url load image

    Newt has giving you the correct answer, and reporting him was not a nice thing to do. This is not how the reporting system should be used.

    In order to load multiple images, you need to have multiple image 'blanks' i.e. frames, in which to load them, because Construct 2 cannot auto-increment the number of image sprites or frames needed when in 'run mode'.

  • Sprite= all instances same texture.

    Try tiled background, or multiple frames on sprite.

    Changing animation frame on the sprite and assigning a new image url worked wonderfully. Thank you!

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