vtrix's Forum Posts

  • yes but in case of system(selection), to me it looks like its updating much more than the rest (inspecting an object for example) maybe its because its the root of list ? , there's really no other way it would bump up the processor usage that much just by changing my selection in the inspector, nothing else is changing in my project..

  • this is mostly because some triggers or eventcheck with 0.1 get bumped and then returns, while interesting to know its getting activated, its hard to keep track of, but the problem with static list, is if you don't have much space for the profiler, and your testing your project, you wont see where changes happens down the list

    if you are scrolling in the debugger you're not testing your functions/game, so less activity..

    if you do have space, a static list and maybe a slight color indicator would be more usefull

    so i think an option would be best in this case, static/dynamic order maybe?

    edit: wether or not you have space, it would be a good option if your interested in a certain group

  • Jase00 well just doing the the overlapping point test would do the trick here i think, from the moment its overlapping you call the next coordinate, a distance check could work as well

  • Ashley , i noticed that the debugger can give a wrong impression about the performance,

    to clarify,

    while inspect is active (starts at system) the most intensive actions the cpu is doing is updating the debugger itself

    if it has to update lets say 200object, = 200+ debugger fields, it drains nearly 40% of my cpu

    if i switch to profile its max 6%-7% (actually watch with not fields has the most accurate cpu usage 5%)

    if i switch to an specific object to inspect, the cpu go's to 8% (it updates only this fields)

    then inspect>system again, its + 34%

    i think that inspect (system) updates all fields of the objecttree, but it should only update the system screen.

    + a state save of what your doing would also be good> saving inspect/watch or profile

  • Copons , instead of making the root an object, make it an array, this supports indixes or you could index the objects itemnames in a seperate array

  • masalife

    Yes very interesting, i would want to know more about this program,

    i checked the website but i don't find sdk information / overview of functions/behaviors, +pricing

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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