kaiko's Forum Posts

  • ok, made a new version with built in function, i guess i've been using functions for ages never realizing its built in nowadays.

    the issue could be that its trying to load a picture that doesn't exist due to an empty var and then it uses last loaded image instead?

    there is something going wrong in display_games() function

  • as far as i can remember i only use the function plugin that might be from rexrainbow.

  • loading image from url on instances does not work sometimes it keeps loading the last loaded image to the instances, not the one is it is set to load

    ____ A concise description of your problem here ____

    Attach a Capx

    ____ Upload a Capx to this post ____

    Description of Capx

    ____ Concise description of what this CapX does ____

    menu that loads icons for games from another site,game list is fetched from a rest api

    creatin instances as menu icons.

    Steps to Reproduce Bug

    • Step 1 run
    • Step 2 watch the 4 icons are using te same image, look which images have been requested with fiddler,it is also printed in debug text box. there should be 4 different icons not 4 of the same. it seems the last loaded image is somehow used for all sprite instances
    • Step 3 etc.

    Observed Result

    there are 4 of the same icons displayed.

    ____ What happens? ____

    there should be 4 different icons not 4 of the same.

    Expected Result

    ____ What do you expect to happen? ____

    there should be 4 different icons.

    Affected Browsers

    Chrome: (YES)

    FireFox: (YES)

    Operating System and Service Pack

    ____ Your operating system and service pack ____

    win7 sp1

    Construct 2 Version ID

    ____ Exact version ID of Construct 2 you're using ____

    r163 32-bit

  • use system set variable value and use Browser.QueryParam("location")

  • heres a image of the said code:

    the create object creates objects but not any new instances just copies of previous instance.

    i=0; num_games=5;

  • im running a for loop to create a bunch of icons, i have a container as start object, nowin first loop object copies the container object, second time in loop it copies the newly created object instead of the original container, so all icons created are the same, not the effect i desire, is there some way you can create object based on name($i_icon) or similar so that new objects are unique?

  • The other option is to create the objects at the start of the layout and place them where they need to be using code.

    this is what i want to do but construct gives an error message if object isn't present in layout.

  • I use createobject to change the appearance on the screen based on certain conditions(display buttons etc.) but the object must be present in the layout, making it quite cluttered as i have a lot of objects.

    why is it that the object must be present in layout?

  • awesome

  • if so my method will save a few requests...

  • i use larger images that has animations on them on specific coordinates and i want to load a frame from x,y,width,height from a loaded sprite then have a loop and get all frames for animation,

    why, you ask?

    minimize requests of loading a lot of frames, you have on image that contains all frames, sure it might be larger but your app doesnt have to download every single frame.it should save loading time and have a neater directory structure.

  • since the silly pm messaging function requires rep ,email me at instead.

    I will supply artwork

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • yes slots like that but with html5 and not flash.

  • I am going to do a Video Poker,

    I have the gfx and sfx, but i want a 3rd party to put it together.

    so if anybody is interested and is able to, i'm all ears.

  • to create games like video-poker,5-reel slots,black jack etc. in C2

    will pay of course, msg me if interested.