locohost's Forum Posts

  • jayderyu No actually coding with Phaser.io in Intel XDK would be a better choice than all you mentioned.

    I like C2 so far. I'm mainly looking for some coding speed-ups (like in Brackets/Sublime) in the C2/C3 editor. That's all boss

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sorry, man.. I don't even know how to do what you knows..

    No problem

    I've hacked around the issue with a couple functions wrapping an array. However I'd greatly prefer using a built in solution

  • No, I want to get the "value" in the "Select" control on the form. In the Html the select control looks like...

    <select>
    <option value="someDbaseId">Marks name text</option>
    </select>
    [/code:2f7gb3gy]
    
    I can see in C2 List control how to get the text of the option (item), but not the value. Follow?
  • I have some form List controls. They have items with "values" (database _id's) as well as "text". It's clear how to get the text but how do I get the _id's stored in the item values?

  • , Why wouldn't the scene (layout?) and image editors be separate programs? It appears the image editor already is so the layout editor could be also

    I'm just thinking out loud. I'd love to see more of the Brackets/Sublime Text features in C3. Rather than just an afterthought, why not make the C3 editor the best available?

  • What are the chances C3 could be built around the Brackets editor? Like Intel XDK did. Brackets is an awesome open source editor. Very much on par with Sublime Text 3.

  • Seems to be working. Thank you very much!!

  • I find myself wanting, over and over and over again, to put a comment inline with the actions. I can't be the only person. Any chance this is a forthcoming feature?

  • Holy mother of Odin that worked!

    bladedpenguin, linkman2004 I'll be sending you both birthday cards stuffed with cash!

  • Z-indices are indeed unique, at least per layer. Though even if they weren't, bladedpenguin's method would likely work all the same.

    If every sprite on same layer has a unique zIndex, I may be un-screwed

    I can draw each sprite in ascending order of zIndex. This should always put the next sprite in it's proper front/back orientation. I think...

  • Is every zIndex unique? If not, I'm backed to screwed

  • I'm probably in some huuuuuge trouble because I think this is completely impossible in C2...

    I wrote a function that iterates over every terrain tile in my isometric map layout. I saved the terrain.type, terrain.zIndex, terrain.X and terrain.Y in an array and then downloaded it as JSON.

    Wrote another function to load that JSON file back into the array and recreate/draw the terrain.

    Now the very, very sad (for me) part...

    Remember, this is an isometric layout: There is no way to re-set the original zIndexes on the terrain sprites!

    I'm screwed right?

  • Yann Very nice work my friend! Working well so far. One trick escapes me: I have an array of objects I need to get into.

    How would I get to the attribs in an object within an array? Like...

    {
        "_id": "blahblahid",
        "units": [
            { "unitId": "blahUnitID1", "qty": 7 },
            { "unitId": "blahUnitID2", "qty": 5 },
            { "unitId": "blahUnitID3", "qty": 3 },
        ]
    }
    [/code:5q4ibz47]
    
    How would I get to the units[1].unitId or units[2].qty?
  • > lennaert Notice how you spelled Missle_New_Arrow wrong? Yeah so did I in the function name

    >

    If you use chrome, this could have shown up in the console: CTRL SHIFT J as an error about referencing a none existent function

    Really? I am using Chrome to test. But I wasn't looking at console errors. I'll have to look for that. Thank you!

  • lennaert Notice how you spelled Missle_New_Arrow wrong? Yeah so did I in the function name