[HELP] Loads Multiple Files or Single Picture File?

This forum is currently in read-only mode.
From the Asset Store
An educational game for counting pictures. An easy to use template for developers to build larger games
  • About Sprites, can i load a single picture file which contains multiple sprite images (mapped) on it, for example:

    <img src="http://fc03.deviantart.net/fs7/i/2005/266/a/b/Walking_Sprite___Fayt_Leingod_by_SkylaDoragono.png">

    Or do i have to split the single file into multiple picture files?

  • You can split images using the import frames option by right clicking the area where the animation frames are under the list of animations.

  • Same question here.

    It is possible to load animation from image with multiple images in grid, but i'm experiencing problems with alpha-channel (tried png, gif) - the animation frames are squares with white background instead of alpha.

    Added:

    Yes you can!

    http://www.scirra.com/forum/viewtopic.php?f=3&t=7400

  • Same question here.

    It is possible to load animation from image with multiple images in grid, but i'm experiencing problems with alpha-channel (tried png, gif) - the animation frames are squares with white background instead of alpha.

    Added:

    Yes you can!

    http://www.scirra.com/forum/viewtopic.php?f=3&t=7400

    Once you get the right file type sorted I'd really suggest using Arima's suggestion.

    Loading an external animation via the image manipulator is quite an undertaking, as it requires you to skip a tick, and then load the frame.

    Not to mention the crop feature is a bit buggy, and there's no way to set the background to alpha.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I have nor ticks skip in my cap, neither i'm encountering alpha-problems (at the moment using PNG24 (GIF also will do) instead of indexed and bad supported PNG8). I have character with 4 animations 4 frames each.

    But, I'm working with pixel art, so every single frame is 48x48 px. 96x48 in some places.

    Here's how i do it in the game i'm working on now (just for proof of concept)

    <img src="http://img696.imageshack.us/img696/6409/93142230.jpg">

    There are 3 loops, by anim name, angle and frame. "Character" is a family of objects.

    And here are the functions for converting anim number to name

    <img src="http://img404.imageshack.us/img404/642/67749299.jpg">

  • You can split images using the import frames option by right clicking the area where the animation frames are under the list of animations.

    Thanks for the information given, i'll try it!

  • and there's no way to set the background to alpha.

    You can use images with alpha defined alreay, like png24, gif.

  • Yes, as I recall the image manipulator will usually set the background to 0 opacity... if the background is well defined.

    Problem is that not everyone's graphics card is the greatest, and importing this way can leave artifacts.

  • Problem is that not everyone's graphics card is the greatest, and importing this way can leave artifacts.

    This is the aspect i've missed. anyway if i'll get positive feedback on this problem after release i'll rewrite some parts. Thanks for advice.

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