Steely's Recent Forum Activity

  • Hi ramones, thanks for your reply,

    I got it working if I load it direct in the array with ajax (finaly) but I wanted it to do different now, because I don't know if it all loads fast enough in a android app, so I wanted to copy my data (txt) files from the level editor direct in the c2 code as dictionary keys key 1 to 30 (or more) for example.

    The levels are created out of this 30 different level parts to generate random levels.

  • [quote:3egzw1zh]Your JSON string has

  • LOl
    characters in it:
  • Code: Select all

    "{

    ""c2array"":true,

    ""size"":[3,7,1],

    ""data"":[ [[0],[0],[0], [0],[0],[0],[0]],

    [

    [1],[-1],[-1],[-1],[-1],[14],[26]], [

    [2],[30],[10],[8],[-1],[-1],[-1]], [

    [3],[0],[-1],[-1],[-1],[-1],[-1]]

    ]

    }"

    I guess you copy/pasted it from another editor. If you remove the tabs (replace them with spaces) it works.

    Thanks this work perfect,

    but why is c2 still saving it in wrong format (or I'm missing something)? I made a level editor in version 192 and it save still like this:

    {"c2array":true,"size":[30,8,4],"data":[[[7,20,31,42],[8,21,33,0],[11,0,32,40],[7,0,0,0],[7,21,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]]]}

    and can't load it in a normal way in to a array or am I missing something?

    I like to put the level data in c2 project files (like music etc.) so it get compiled with the code.

    Struggling for days with this now and hope that some one can help me with this.

  • Take a look at this

  • Just tested it on ie and chrome and its bot choppy. All static layers use render cells to improve performance but still choppy.

  • I updated from 184 to 191 and have same issue, very poor performance, but don't know if it has to do with node webkit, I get still 60FPS but screen still stutter when scrolling

    Awesome !!!!!!!!!!!!!!!!!!

    Thanks Ashley

  • Happy New Year from Canada to everyone, let the gaming gods bless us all for 2012!!!

    ( little early still here 6:20pm <img src="smileys/smiley2.gif" border="0" align="middle" /> )

  • This is really awesome :)

  • Awesome!

  • Very nice job Pyteo

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You have to put everything in seperate groups and disable/enable group with events, that way you can easy make a custom pause in your game.

    Plus you have to pause your animations.

  • This work great, nice job <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Steely's avatar

    Steely

    Member since 21 Nov, 2010

    None one is following Steely yet!

    Trophy Case

    • 14-Year Club
    • Email Verified

    Progress

    15/44
    How to earn trophies