klkitchens's Forum Posts

  • A collection of behaviors to help you make nice UI in no time.

    This looks AMAZING... Been having issues designing my own and while it looks good, yours looks much better. Very nice.

  • > Never really used this myself, but if u really wanted linq there are alternatives. github.com/mihaifm/linq

    Cool. Will check it out. Thanks!

    > Have you actually tried modern JavaScript with all the latest features? It's a fantastic language with great simplicity, powerful high-level features and expressive syntax. We used it to build all of Construct 3, and I'm a big fan now, it's a great language. Much of Construct 2 was written in C++, and I think we are much better off working in JS.

    Ashley No... Perhaps JS has matured beyond being a simple liaison between "real" coding and the web UI, LOL. Will dig more.

    Does C3 support most of the newest stuff though? Saw for example in the docs that modules for example were not allowed (IIRC). Hate to get excited about the new JS only to find the stuff I need does not work. :)

    OK... so been digging. And wow... ok... JS has a lot of new bells and whistles. Going over some advanced JS tutorials now on classes and new keywords and you're right. Lots of possibilities here. :)

  • > And I've asked before but never seen answered. How does all this "in browser" stuff work for native apps/exes?

    The answer is Cordova for iOS/Android and NW.js for Windows/Mac/Linux.

    The laymans explanation is that those applications run on the native platform but interpret HTML/CSS/JS just like a web browser but they don't include any browser UI nor default browser keyboard controls. Basically they make your web app look like a native app.

    Cool...

    So they are kept pretty current then (for all this new JS stuff?)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In general, C3 supports whatever the browser supports, and browsers are regularly updated to add the latest JS features.

    Two followups:

    So what about third party libraries? I can include these in say my plugin code in the file manifest and use them inside my plugin?

    And I've asked before but never seen answered. How does all this "in browser" stuff work for native apps/exes?

  • Never really used this myself, but if u really wanted linq there are alternatives. github.com/mihaifm/linq

    Cool. Will check it out. Thanks!

    Have you actually tried modern JavaScript with all the latest features? It's a fantastic language with great simplicity, powerful high-level features and expressive syntax. We used it to build all of Construct 3, and I'm a big fan now, it's a great language. Much of Construct 2 was written in C++, and I think we are much better off working in JS.

    Ashley No... Perhaps JS has matured beyond being a simple liaison between "real" coding and the web UI, LOL. Will dig more.

    Does C3 support most of the newest stuff though? Saw for example in the docs that modules for example were not allowed (IIRC). Hate to get excited about the new JS only to find the stuff I need does not work. :)

  • no man, you got me wrong, that not how i intended to sound, I am also a professional dotnet developer, 7 years, not as tenured as you. I was just pointing out that that the standard dot net library will not provide you that much benefit, if you port it to wasm to use in javascript, not just will you face the interoperability cost, you will also not get much from most of the dotnet standard classes that deal with low level os calls, File system. Since c3 is run from a browser, you will hit the browsers sandboxed limitation, and even using 3rd party library (any unity api is out of the question since those are compiled to mono), but you will also have compile those down to wen assembly.

    on that note, one of the guys who use to work at microsoft started working WebWindow (https://blog.stevensanderson.com/2019/11/18/2019-11-18-webwindow-a-cross-platform-webview-for-dotnet-core/) which if it gets mature could be of interest to wrap construct3 games.

    Thanks so much for the clarification. I'm not seeking to use .NET libraries per se... but C# coding to do some specific processing and algorithms. No graphics handling etc (that's for C3 to handle). But Linq for sorting, sifting, combining data, etc. for one is a major timesaver.

  • Dot net core has an upcoming web framework called blazor. Which hosts the dotnet framework in web assembly. I am not sure if that's coupled with the blazor framework. If they have it in separate wasm file you might be able to leverage it, but only the dotnet standard libs, 3rd party dotnet library won't work.

    There is one for Mono that I've found already and it creates the WASM file that I could use should I decide to go that route.

    and to be honest I don't really see alot of benefit adding the dotnet framework on top of c3. Any thing you think you need dotnet for will probably be easier in javascript

    If you're not a .NET developer I'm sure you wouldn't see a lot of benefit.

    But I am and I know for a FACT that anything I need .NET for will be 10x easier than Javascript. Don't get me wrong, I use JS where JS needs to be used. But for the heavy lifting, .NET runs rings around it in terms of power and simplicity of code. No contest.

    They each have their lanes and their uses. And this isn't a thread to discuss the advantages of .NET. Just was wondering if it would be possible to add this upgraded toolset.

    Seems not though, so onward I go.

    P.S. Don't mean to sound harsh, but your reply to me seemed addressed to a newbie who sees all these shiny things and doesn't understand them. I do understand the question I was asking and the pros and cons (mostly pros) of being able to use .NET. Full scripting like Unity would be the bomb. But Unity didn't become accessible until after I was down the C2 route. I kept "meaning to" get around to it, using the 2D skills C2 taught me and the 20 years .NET experience I have (yeah, I'm a longtime developer). But never did... So forgive me if I desire the best of both worlds in C3 too. :)

  • Thanks both. How do native iOS and Android EXEs work then? Are you loading some internal browser to run the code?

    Ashley As for powerful, there is a lot .NET can do that JS cannot obviously. But you're right, there is a price to be paid. Unless it's something really niche and specific, looking for third party libraries vs. coding my own (I'm a developer professionally) would be far preferable.

    Was just looking through some game utilities I've written in C# and lamenting that replicating them into JS would not be impossible, but not nearly so elegant codewise.

    Oh well.

  • Don't break up the logic. Test for button click first, then as a sub-sevent test for IsFlipped and use Else to test the opposite.

    That's what I was missing... thanks!

  • The addition is Javascript is awesome and opens the door partially for some advanced coding options. But the one boost Unity has over Construct is the ability to script in .NET C# language which is much more powerful than JS.

    While I wouldn't expected C3 to support another actual scripting language, it would be awesome if we could develop libraries in .NET (which has portable versions for Android, iOS, Mac, Linus and of course PC) and be able to consume those libraries inside of C3.

    Again, for those worried, not suggesting the other stuff be replaced at all, but expanding to more developers would never be a bad thing.

  • Trying to click on an object to play an animation (to test my animation). I've added them to a family and have family instance variable set to false. I check

    EVENT:

    Mouse | On Left Button Clicked on TokenFamily

    TokenFamily | Check instance boolean (Not)IsFlipped

    Action:

    Then play animation to flip the item, set TokenFamily.IsFlipped to true

    EVENT:

    Mouse | On Left Button Clicked on TokenFamily

    TokenFamily | Check instance boolean IsFlipped

    Action:

    Then play animation to reverse flip the item, set TokenFamily.IsFlipped to false

    For testing, there is a single instance for the family on screen at the moment, but for some reason it's never setting the IsFlipped correctly true/false and is just always playing the same "unflip" animation.

    I looked at an old C2 file I had worked on before and it seems I've coded it correctly, but very odd.

    No capx I can share unfortunately. So hopefully something is jumping out.

    Tagged:

  • About to start down the road of creating my own plugin/js library and just wondering if there are any gotchas to worry about if my goal platform is going to be iOS or Android native apps? Does the C3 runtime take care of all the compatibility issues?

    Thanks!

  • In my project I have 9 basic types from which I'm creating a certain number of each type when the layout loads. I get them created just fine, but the 9 types are part of a single family with a family instance variable I want to set.

    When the object is created, how can I refer to the instance I just created (inside the same function)...

    So "Create Object" (I'm using by type name) and then Set the variable of that new Object to X.

    Is this possible in C3?

    I tried Family.SetBoolean and it takes it in the editor, but on debugging the objects are not actually changed to the value.

    ANSWER: Sub-event for pick last created "Family" and then set the value... YAY!

  • Started looking at the Tutorials, but they seem to be the C2 tutorials updated for C3 (not a bad thing). But rather than go through all the remedial stuff again are there some good quick to speed resources for C2 users to learn the new stuff of C3?

    Tagged:

  • Thanks all... The 50% upgrade did work for my C2 business license, so I'm down for a year and will reevaluate next year. I do like that I can cancel today if I want and won't be auto-renewed. Ancestry.com does that with their monthly subscriptions and it's nice. Sign up and then do a bunch of research and be done when you're done. But no worries about renewal.

    I do think Ashley there are some more customer focused options you can and should consider down the road. Namely a month to month rate. Not the yearly/12 at all, but for example again with Ancestry, you can do $99 for 6 months or $20 per month. Allows a person who codes/hobbies in spurts to not get stuck with a lot of unused/wasted subscription time. Likewise a six-month option would be a nice addition. More variety gives customers more choices and don't feel enslaved by a single payment system.

    But enough said here.

    I managed to get rex_date installed and cocoon uninstalled and got my game running pretty much as I left it... Very cool. Now to do some reading or tutorials (the C2 tutorials were very good, hope there are C3 ones just as good) to see what I've missed or what I can use now for better coding.

    Thanks again!