construct 2 and programmation language

Discuss game development design and post your game ideas

Post » Wed Mar 09, 2016 11:20 pm

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?
B
9
S
3
Posts: 56
Reputation: 1,003

Post » Thu Mar 10, 2016 12:14 am

Logic, sure, and even some parts of code, but events are much different than standard code.
Image ImageImage
B
170
S
50
G
179
Posts: 8,380
Reputation: 113,429

Post » Fri Apr 29, 2016 5:06 pm

Pretty sure construct 2 is based off html5 but java is pretty easy to learn
B
2
Posts: 9
Reputation: 168

Post » Tue May 17, 2016 5:19 pm

frayt wrote: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.
Code: Select all
line 1;
line 2;
line 3;


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.

This post describes it further.

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.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to Game Development, Design & Ideas

Who is online

Users browsing this forum: No registered users and 0 guests