klabundee's Forum Posts

  • Oh dear...

    If you can replicate the bug I'd report it. As a workaround you can download the array json file, edit it in a text editor and then add it back into the project - that should get around any bugs in the array editor.

    Just did, https://github.com/Scirra/Construct-3-bugs/issues/451

    If you have C3, can you try to see if happens there?

    Cheers

  • Would be good if C3 doesn't have a bug with it....

    If add a new array file and change the array size... it's enough to crash it and ask to restart.

  • Just realised we're in the C3 forum! You can use the built-in array editor to add data to the array:

    In the project bar, scroll down to the files icon, right click, select "New" and then "Array": this will automatically create an array.json.

    If you right click on this file and select "edit", the array editor will open and you can add the data directly.

    I think you will still need to import that data into an actual array object using the AJAX method linked above.

    Well, just bought a C3 license, so yeah, I'm using this way

    Thanks!!

  • Oh, sorry, my bad posting here, it should be C2.

    But thanks anyway.

  • You can use a "for" loop to fill an array

    Thank you for the reply but as the numbers are not sequential I think that is impossible to do.

    Using for it will fill with a fixed variable that increments each loop time.

    Look what I have to do to fill:

    I'm populating 2 arrays, my project is an infinity jump game, so, each platform have different sizes and forms, sometimes you can't have the same platform or a platform with the same "design".

    The first array is just to know which platforms can be created after the current one, it is random from this array in the column which the current platform is. It is working good.

    The second one is just to know the space between the current and the new one and is also working good.

    I'm just trying to find an easy way to do it.

    I have about 15 platforms...

    This image is just for one.

  • Hello guys,

    I'm using arrays on my project but I'm not sure if I'm doing it wrong or it's the only way..

    For example, each item that I need to insert I have to set:

    X,Y,Z and the value.

    I need to fill a line with 20 itens, is there any way to do it like:

    1,Z,1, values: 1,2,3,4,5 ?

    Cheers mates

  • Testing new platforms, paralax and misc.

    I'm liking.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pretty good

    Come on.. is almost Thursday here...

  • Let me suggest make something to let it more dynamic, make an animation that comes before the object start to fall, so, it will work like a timer if the animation starts the player will know that in 2 seconds something will fall.

    Good, so, now you can make random on this same scene.. will not be like old platform games (like mario) every time will be different.

  • Yes, it make me remember Fez.

    I'm jealous about you 2.

    =P

  • Hello,

    well, I saw performance problems in my first project, was a finger game, platform jump, infinity jump.

    What I did:

    Every time that one platform goes off screen {destroy, call function new platform on top}

    Inside the function had one var to save the random for the next platform and create.

    I made all using 720p size and graphic but with 3Mb of size I feel that it was not running smooth, like changing FPS every time, I have been debugging and was all "normal".

    Even using "tops" smartphones was not smooth.

    But... is just one create sprite.. really simple.

    What about if I would like to make something complex...

  • You do not have permission to view this post

  • You do not have permission to view this post