Itenimum1's Recent Forum Activity

  • Ah, anyway I just remember that your way of doing this is actually a global for each loop and one Ive already tested before, I was trying to give a bunch of objects a brain object and test each Unique (If UIDObject == UIDObjectBrain :: Do something) ID exists per brain do the search but I still need the for each loop to find the nearest object target to each one.

    It seems it is inescapable that to loop the objects you'll either do a global for each loop or a regular one. I'll just deal. Thanks again for making me realize this.

  • thanks ill give it a shot hope I understand this right.

    Do you know of LoS objects are more resource intensive than simple for each loops?

  • Multiple instances of same kinds, no for each loops? I'm trying to use built in looping but it seems impossible.

    note: I am using choosing by UID, but to even choose by UID you must loop through instances, hence the problem as it stops -short.

  • I figured it out everyone thank you. I didnt realize that asJSON is a state string with numbers and letters.

  • i was planing to load up a array by putting all the data in the array on one line as json But i read a post Ashley write state its no good to load a like this way it take up memory on make game take long to load

    on start of layout array load on paste in the code simple

    "{""c2array"":true,""size"":[200,111,1],""data"":[[[""NAME""],[""J""],[100]]]}"

    she say it best to load it from a file so search the for on how to use the ajax as a start for me i just forget about arrary

    Ouch, I didnt know we arent supposed to use a ton of arrays for object management, are arrays the only things that can save object data as JSON?

  • I am having a great difficulty figuring out how to load zones of objects (like large streaming engine games that allow travel over great distances). Sans switching game engines, I dont see many examples about doing something like this, especially because of localstorage constraints perhaps...

    How do I find the specific command for saving ONE OBJECT's data as a JSON file? Is it through arrays only? I can figure out how to build an object into an array I guess. Assigning strings and number values to be loaded from on the fly while in certain regions every amount of time I guess. Thats one way. Anyone know of other ways to approach this problem? I'm used to being able to literally disable objects in other engines and disable them or enter them dormant. In construct 2 this is just not possible. They must be destroyed completely and even then I hear theyre still in memory. So youre going to have to re-use objects or something....

  • Yep, still getting a number of errors with NWjs, amongst broken features. Hope they are resolved quickly..

    Just in case anyone else is having this problem, this may work for you. I rolled back to version v0.13.0 alpha 5 and beta 218 ran fine so far. (just reinstall on top of updated install, or delete old folder and uninstall and then reinstall.

  • I've been getting it on NW.js preview option, I cant place the cause. Happened after using the new beta 218 and the new nodewebkit install.

    "Cannot read property 'App'"

    line 165 (col 23) of preview.js, checked and looked fine..... Doesnt happen in non-NW.js...

  • wow thanks alot for the explination but, im kinda confused, what does lerp do?

    anyway, Iddint know the order was important for distance() and thanks for that. basically I want to check objects distances within radiuses, yes. But the other stuff sounds important too. I dont have a very good understanding of this so I'm trying to figure out all the distance functions since its important for me to know where stuff is.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Having trouble finding/figuring this out, I know the distance command returns the distance between the X and Y of an object compared to another.

    But how do I use this? I'm trying to save this distance value and compare it because half way to the distance of another object I want to do other stuff. So does anyone know of an easy to to remember all of this distance checking, its confusing me bad.

    Basically, I want to check one objects distance from another, using the dist() function returns the distance in pixels between these two objects? So I can do math on it like this?

    dist(myObject1.x, myObject1.y, otherObject2.x, otherObject2.y) < distancetestvalue

    trigger event

    will this do:

    this distance from the object less than this range

    and which object goes where , how do I remembher this stuff/ Anyone know of a beginners guide to programmer website that can explain this basic geometry/trigonometry to me? I canrt figure out atan2 either. I know they do what they do, but not why they do it or any special rules I should follow when using the commands.

  • thank you for this one.

  • Yes thank you very much, I think this is a good start, if anyone knows of any good examples off hand feel free to post those as well. I'll keep searching but knowing about these examples is a great help to me and my friends.

Itenimum1's avatar

Itenimum1

Member since 12 Jun, 2015

None one is following Itenimum1 yet!

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies