Problem with ImageManipulator [Construct 0.99.82]

This forum is currently in read-only mode.
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hi,

    The idea is simple: read a ini and create a instance for every item in the ini, with the sprites with the same name.

    But there are a problem:

    1) read ini - OK

    2) create instances - OK

    3) load images and put they in the correct instances - Don't work!

    <img src="http://img91.imageshack.us/img91/8143/97913510.jpg">

    <img src="http://i48.tinypic.com/152dlkn.jpg">

    file:

    http://hotfile.com/dl/31985280/f440bae/ ... e.rar.html

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I remember correctly, ImageManipulator doesn't behave nicely with Start on Layout.

    Try Trigger Once instead of Start on Layout; that way the layout will load first, creating sprites, then the ImageManipulator will load images into sprite objects.

    Let me know if it works!

  • If I remember correctly, ImageManipulator doesn't behave nicely with Start on Layout.

    Try Trigger Once instead of start Layout; that way the layout will load first, creating sprites, then the ImageManipulator will load images into sprite objects.

    Let me know if it works!

    Don't work.

    I try even with key_press event in ordert to avoid interference between Layout and ImageManipulator, but don't work.

    It look so http://i48.tinypic.com/152dlkn.jpg whit "start Layout" or "Trigger Once" or "key_press".

  • Are you trying to load different images to the same sprite frame?

    If you want multiple instances with different images you have to add multiple frames to the specific sprite, then change to a different frame when loading.

    Just setting a private variable wont help unless you do something like compare private variable-> set frame

    BTW sprite has a function for this already "Load animation frame from file".

  • Are you trying to load different images to the same sprite frame?

    If you want multiple instances with different images you have to add multiple frames to the specific sprite, then change to a different frame when loading.

    Just setting a private variable wont help unless you do something like compare private variable-> set frame

    BTW sprite has a function for this already "Load animation frame from file".

    Good idea!

    I try it and I have found a Construct BUG!

    <img src="http://i43.tinypic.com/16axzy8.jpg">

    If you go to debug mode, press enter and after space, Construct crash!

    the critical code is:

    AppPath+"\Livello_1\oggetti\"+oggetto_generico.Value('nome')+"_SP.png"

    cap file:

    http://hotfile.com/dl/32002914/aa27e1b/BUG.rar.html

  • Not sure I followed that exactly, but here is a nice tutorial about putting multiple graphics into one object

    Subscribe to Construct videos now
  • Not sure I followed that exactly, but here is a nice tutorial about putting multiple graphics into one object

    Subscribe to Construct videos now

    Interesting!

    I'm trying to build a level with same idea but automatically through a ini file.

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