vtrix's Recent Forum Activity

  • shukra use the browser plugin, and log things to browser javascript console, but striked out events just don't run, you do have to be watchfull to strike out the full eventcode, you can strike out condition, but forget to strikeout the action for example

  • https://dl.dropboxusercontent.com/u/61666915/zeroArray.capx

    zeroArray example

    i added an alert, the event after the loop (thats the same as the end of the loop)

    a subevent of the loop will be executed every iteration, but an event with loop as subevent, you can still run another subevent that will not iterate

  • grossd , you cant set a value to an array that has 0 size, put pushing should work on a zero sized array, i make an example, but im still on r165

    i don't understand about the loop, if you run a repeat 10 times, after the 10 it continues, same for arrays for each or for each instance, if the loop is finished it continue's the events, so if you have an event with a subevent that loops, than under the loop you do you next action..

  • grossd arrays work with 0 size , but i guess at least one axis should be size 1, not sure, i already used size 0,1,1 or 0,0,1

    if you then do a push on x-axis, first 0 value will be gone

    also if a loop has ended, it will autorun the next event, so just place a trigger or a function under the loop (not inside) would that not work for you?

  • Yann , thanks for checking, yes a couple of things

    setting path and running thru current seems the most logical thing to do, if you know the correct way to do so, i dont think a root foreach would be that much use, setting the root outside the foreach loop is what i eventually did and works great.

    is also made the mistake that when importing a json file i didn't make a root object, this somehow also screws things up, not sure if thats also in my capx example, but the structure looks fine a first sight (there's also a root object) but i think its not recognised as such.

    as first time user, working with the json plugin (json for that matter), i found the 0 and 1 for value, the most confusing (at start) as you have the currentKey but not currentValue + the naming order, a path has to exist but a key doesn't, as in.. you set the key at a nonexistend name, you don't have to create it like an object (and this also creates a path) and an object you create and set

    edit: if you return an arrayProperty in for each, the arrayposition is a string, that can be confusing..

    as for path saving, i had the same idea, also if you could save the path, you probably are most likely to want to save a path to an array or object,

    you could create a json path "folder" filled with arrays at firstrun, and name them "key" & "path" , but indeed if you don't know the structure, indicating what the path is, would be harder i guess, on the other side json is very fast so iterating thru the structure is already fast and some shortcuts can always been made

    when im there, i will try those function out, i like the function.paramCount one

  • Yann

    i made a capx of the problem,

    https://dl.dropboxusercontent.com/u/61666915/jsonProblem.capx

    use console to check the values, so i run the same function twice,

    at begin of the function i have a set path, but on second run, the path seems wrong, while it should been reset

  • Yann

    i have some trouble resetting the current path, from certain paths (well thats what i think is happening)

    edit: i tried to change the path in a current loop, and continue the loop at this path, but this doesn't work

    i think i just need to call a new function

    no, i still have troubles..

    my only conclusion is that you cant switch path when in a for each current, its somehow stuck at that path,

    and my loop starts with a set path/reset, and runs one perfect, but is then stuck at end path

    its like "currentpath" has its own variable that isn't reset when set current path to root

  • well, scratch that, just logged in again, bummer

  • i just tried clearing the coockies from my local storage, i closed the browser, reopen site and im still logged in, i think minutes ago this wasn't working... i also see that a variable has changed, where it used a prefix "username" in variable phpbb3_i3v8q_k now thats gone, so mabye... will see later if it holds up...

    you can test in chrome javascript console - recourses - coockies > http://www.scirra.com right click/clear

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • its probably a phpBB specific problem in combination with constructs serversetting/database, maybe the admins of phpbb can offer assistence, i checked the forum and it seems that some people have same problem when updating server and/or bbversion

    as tom stated that on his workstation it works, its harder to test, but the problem is still here, and if anything it seems worst than before, login after every visit...

  • Mazdakfx , not checked your capx

    but i have something that fits the description

    https://dl.dropboxusercontent.com/u/61666915/random_no_overlap_instant.capx

    not sure if you mean, if the game is running idle, and your not doing something its still takes cpu

    then,

    check debugger to see whats causing the biggest cpu drains, using groups for different parts of is a good way to see where its coming from (debugger cpu usage is splitted in thesame groups) things like setting positions every tick when nothing is moving, still takes cpu, running checks that does'nt need to be checked like an endlevel boss events, only way to completly shutoff part of your game is disabling groups, but knowing where's the biggest drain is the main part to do something about it

vtrix's avatar

vtrix

Member since 24 Jul, 2011

None one is following vtrix yet!

Connect with vtrix

Trophy Case

  • 13-Year Club
  • Entrepreneur Sold something in the asset store
  • Email Verified

Progress

15/44
How to earn trophies

Blogs