construct 2 and programmation language

0 favourites
  • 4 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • can we learn more easily a standard languaga like c, c++ or java if we are good with the construct 2 logic? is that the same logic?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Logic, sure, and even some parts of code, but events are much different than standard code.

  • Pretty sure construct 2 is based off html5 but java is pretty easy to learn

  • can we learn more easily a standard languaga like c, c++ or java if we are good with the construct 2 logic? is that the same logic?

    I am actually testing this theory right now. Our client developer has very little experience in formal programming languages, and so far he seems better able to understand the server-side logic (written in Java) than before his experience with C2.

    So, I would say yes.

    There are some major differences between Java and JavaScript (C2 is based on JavaScript; which is a sub-piece of HTML5) though.

    Firstly, is the asynchronous nature of JavaScript, e.g.

    line 1;
    line 2;
    line 3;
    [/code:lph4dudg]
    
    As you execute JavaScript code, it may execute in the order 1, 2, 3; or 2, 1, 3; or 3, 1, 2.  There is no guarantees on the ordering of execution, so you get weird concurrency errors when you start fiddling with global data objects.  In Construct, I have found that the items in a single Action section execute synchronously, while the events themselves are all executed asynchronously.  This phenomenon is the source of probably 20-40% of the posts on the questions in the "How Do I?" section.
    
    [url=http://rowanmanning.com/posts/javascript-for-beginners-async/]This post describes it further.[/url]
    
    Java (and most other formal languages) are synchronous by default, and you have to jump through hoops to make things run in parallel.  But in the code example above in Java, it will always execute 1, 2, 3.
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)