NugMan's Forum Posts

  • this?

    Always: set Sprite.XY=Sprite2.XY

    but it means that one sprite would be over another.

    if you mean follow like one character to another, then i think you could write 1st sprite positions to variables or array. Or 1st sprite can spawn objects then 2nd sprite would follow by this path.

    To have limited count of similar sprites you can use

    1 "if sprite.count greater or equal to XX then stop, else spawn more"

    2 "if sprite.count greater than XX then destroy one (by random or by some pick)"

  • 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">

  • OMG!

    It's all about bad "png" support (). I've "danced with tambourine" around "gif" and problem was solved!!!

    Added:

    Further research showed that the problem is in the PNG8 (that contains 256 color table so it has lesser size than any gif, bmp or so), cause PNG24 works fine.

  • Aby ideas? Please)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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

  • Hi everyone!

    I've searched through the forum, but found no answer on this, so I've decided to register (like "okay,okay, you got me" ), please help.

    After loading image into im.manipulator and cropping it, image drops alpha and now i've got white square with my sprite instead of normal sprite, with alpha transparency.

    Or maybe i can define transparency pixels again, like set alpha or something?