kaiko's Recent Forum Activity

  • my 'for' loop is a subevent to my ajax 'oncompleted' event.

  • im using ajax to get data from a site, then i iterate this data into an array with a for loop.

    as a sub event to the loop i call a function that populates a listbox from the data in array.

    this works, but the function runs all the time.populating the listbox with thousands of duplicates.

    how do i ensure the function is only called when my for loop is finished?

  • is it possible to use C2 to make an android crosswalk app that writes a configuration setting,

    i want to write another android app that reads these settings,

    what for you ask?

    i want to store username/password/url somewhere globally so that my other app can use it login automatically, i don't want to hardcode a url in my app

    is it possible to do this with with cordova/crosswalk/intel xdk?

  • im setting a bunch of variables from an array in a for loop but some of the variables are empty and i cant figure out why.

    code:

    array data:

    anybody has an idea on what is wrong?

  • i have a project created with older version of c2 that used webstorage, this works with latest release if i leave code untouched but if i try to copy code to new project it wont work, so it seems i have to ditch that code for localstorage plugin,kinda sucks webstorage was easy to use, required less code and more apropriate since i only want to store session parameters.

    how do you store session parameters with localstorage?

    keep deleting them on every launch?

  • there must be a work around, how can you display 40 different images fetched dynamically without creating 40 objects on stage?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • sorry but i am using an array, the problem is that createobject doesnt create a unique object, so when i load image from url, all game_icons get this image., since im creating a menu with different icon for each game ,now i get same icon for all games.not exactly what i want

  • in my previous projects i used webstorage plugin and it worked great.

    but now in version r206 its been depracated

    and i cant even get localstorage to work,when i debug, i see it working correctly but it never writes to the browser,when i monitor in developer mode in chrome i cant find the key i set in localstorage,

    when i load an old .capx file that used webstorage the plugin is still there and working, but not in my new projects.

    whats the trick to get it working?

  • good question!

    i guess it depends what you're trying to secure?

    currently i don't know any way to protect a webstorage value from modification,

    but as aleays in client/server architecture, never trust the client

    you could hash the value with md5 or similar but it all depends on what you are trying to achieve

  • i have several buttons and i want the buttons to have several different states without having to' write' same code over again

    my buttons are sprites btw

    states are:

    *enabled(btn sprite frame 1)/ disabled(sprite to frame 0)

    *pressed/clicked(button sprite switches to to frame 2 for a few miliseconds)

    is there any way to do this without having to 'write a bunch of code for each button?

    i would like to be able to set btn1.disabled , and the software should automatically set the sprite to frame 0since im gonna have many buttons , i want to avoid writing this for every single button,is there a button plugin, that can help me out?

  • exactly , even if i understand the need to save memory, there should be a way to override the save memory feature to make more dynamic content, your example with profile pics is an excellent example of why said function should work.

  • thanks but when i try that c2 gives me a error message:"J needs an expression after it"

kaiko's avatar

kaiko

Member since 26 Sep, 2013

None one is following kaiko yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies