jayderyu's Forum Posts

  • Then you need to store the function in a long term library. As it is now it's stored in a temporary closure that will be gone.

    "window.mylib.func = function(){ console.log( 'nested text string' ); "

    then else where

    "window.mylib.func()"

    but do you really need to put it in a function. if you start needing these functions that's usually the time to move to the SDK and embed the functionality. Keep in mind that eval is never put into the JIT. So eval will always run at the slowest code execution. So eval is only good for the occasional js functionality.

  • 1. Your using the same open and closing " " in one string line.

    2. You declaring a function. I suggest you don't and just use the line by itesle. unless your function becomes really largly functional

    No

    "myFunction()

    {

    document.elementById("myid").innerHTML = "TESTE";

    }"

    Try

    " document.elementById('myid').innerHTML = 'test'; "

    notice the change in the qoute type for internal qoutes.

  • Fimbul

    I so agree. I feel with major features with C2 winding down or impossible for C2; that it's time to start laying out the ground work for C3. As Ashley said. r200 will just be like any other release.

    Thanks Rex. I like Yans plugin.

  • Nope. I can't fine the gamepad index in a loop. I absolute the loopindex as the gamepad id then do the poll input request. However I do map index to a controller input slot. Let's just say it's a pain.

    I don't know the exact names at the moment

    Repeat gamepad.count

    -- check for button down then callback function("controller.DOWN", loopindex, gamepad.lastbutton)

    -- check for button release then callback function("controller.UP", loopindex, gamepad.lastbutton)

    -- check for xAxis !=0 then callback function("controller.axis_x_change", loopindex, gamepad.xaxis )

    ... repeat for each input type.

    and I do that for every input type I need. And it's annoying, because then i'm polling for every possible change every tick rather than just letting the even occur then finding which one it occured on.

    GeometriX

    That works too. While I do some more dancing with mine to map the gamepad.id /loopindex count. I prefer controller input agnostic. So the input does not tie immediately to the player. But that's me.

  • I know where your coming from, from wanting nested json hierarchies so I wrote that in an ES myself. It's a pain. However I don't get what your saying what you want. Could you please try again maybe with a diagram of some sort. Maybe there is a storage plugin that does as you want. Maybe someone can offer an alternative as newt provided.

    From what I understand is that you want to start one function to look through the entire storage, and then when finding an entry to call a callback function?

  • There is a 3rd party HashTable plugin that does what you want. I suggest using that for nesting data groups.

  • " and ' need are the standard string encapsulation markers. Everything inside "" or "" is the value of the string.

    "this is a string"

    'string is a string'

    So what happens if you have "This is a "embedded" string"?

    Is Embedded inside a string? no it's not. infact this would just break the string and now the word embedded is out the string and sitting in the code as meaning less code. That then breaks code and not just the string.

    There are two solutions.

    "this is an 'embedded' string where we switch string closing types"

    or

    'this is another \"embedded string string where we use an embedding marker for nesting more \\"strings inside\\" other\" strings"

  • I liked the interview with Ashley. I knew that modularity was a hard job, I had no idea the current IDE is the blocker it self. Well with apparently release 200 not being anything big, and pretty much all the major feature are now out. I personally think C2 should go into maintenance mode and Scirra should look into gearing up to C3. At this time I really feel that the rest of wanted game features are either blocked by C2 limitation(editor enhancement, modularity...) or the community can handle making the rest of the plugin features.

  • Ashley

    For mobile phone not so much. For tablets then yes and there is less loss screen realastate.

    http://twolivesleft.com/Codea/

    As an example is a cloud based developement platform. Offering some good ideas on property tools and still offers code based programming.

    Construct Event system is far more appealing and appropriate to touch based development. Also if as a situation C3 is designed to use a web front end where the visual looks were done by css/js calls. Then the community can figure out layout mods for phones with a tiny real screens. Scirra focuses on tablet/desktop community works on the rest.

    Then there's goocreate

    http://www.goocreate.com/

    which is web version of Unity. Allowing developers to make HTML5 games on a website. Which then of course allows good mobile devices such as tablets access to the same tool set.

    And of course as you know there is a shift in the use of computer. People are using tablets now for just general use and as technology advances the use of a desktop will become less and less. People will start using tablets and docking stations to be more common. C2 big strength is that it's designed for a lower end developers. Making sure that C2 is in that area sooner the better.

    Anyways I should listen to that podcast.

  • Official webrtc on ios is sometime to come. however because Cordova allows native code to be accessed by JS. All hope is not lost. There is a group out there doing a WebRTC layer for PhoneGap. I'm not sure if they are doing a 1:1 function calling though. If they are then PhoneGap is your access to WebRTC on IOS in the mean time.

    However depending on the nature of your online game. You can still use WebSocket for fault and corrective realtime(ie non precision realtime), you can use comet based ajax, or you can even use nodejs websocket or comet commet communication. The only downfall to this is that you need to do more effort on programming your own server side work.

    Does MP work on IOS yes, does not the MP WebRTC plugin work on IOS not at this time ....

  • Once a game is in play such as an RTS or any limited resource maps. You don't want new participants. When the rules have certain dictation of play more players during the game are unwanted as they throw off the balance of the match itself. Heck even just match play should stop from new participants. Not all game types should have open drop in and out play.

    However my opinion is that once play starts. More connections just become spectators.

  • Rex/R0j0 has a plugin(Hashtable) that let's you store data in a tree like structure. I think the question asked is wrong.

    "Should I make a Linked List or Tree data structure"

    But instead

    "What data storage do I/you need"

    The second question is a lot more valid and also the question how to use the storage in the event sheet.

    What I will add is this. A depth storage system would be helpful. however Hashtable already accomplishes this However I find Hashtable "string.access.level" style of storage to not so easily usable from an event sheet as it is from traditional programming. But I see no way to make it any easier than it is. Now if you can make depth storage use variable paramater passing that would be a win. Other wise my goto depth storage is still hashtalbe.

  • Honestly at this point at time the only two major elements missing from C2 are

    Modularity

    IDE asset store

    However both of them require low level major tinkering and low level redesign. Almost everything else can be done via event sheets or sdk. C2 game api already is leagues apart from most other game platforms.

    What Scirra really should be doing.

    1. Get a programmer(they are looking) to work on game api features.

    2. Ashley should move on to tackle C3 and all the low level issues. Ideally C2/C3 needs to truly let programmer developers to get a lot more control over the IDE. Developers should be able to create windows custom viewable areas and just truly create the other side that would really empower c2. C2 biggest weakness is it's inabilty to let devleopers integrate custom tools into C2. This is the direction of shift Scirra should go.

    However as Ashley points out. Going this direction could take 6 months to a year. So this is why there should be another dev to work on feature updates, ide updates and Scirra could tackle the lack of sdk developer strength.

  • Try Construct 3

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

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

    Well since I can do everything your asking for. I don't see the problem. I offer you good fortune to your design. I did MP programming, i wrote my own server and client. I find C2 MP easier due to it's event sheet. C2 MP is easier. Good luck. And you never know. Ashley might include your feature request.

  • You do not have permission to view this post