About stability of function in C2

Discussion and feedback on Construct 2

Post » Sat May 11, 2013 3:56 pm

I am using function for player's movement, as you can see here:



So far, I don't see any problem.

But then, I came across this: https://www.scirra.com/tutorials/510/advanced-tips-and-tricks-that-construct2-offers , which is published on 31st, March 2013. My concern is from this statement:

[quote]Just be sure to not call functions each tick ... or you'll get Javascript errors ;)[/quote]

While, for my case, I do not invoke function in every tick. I have to admit I exploit function calls to a very great extent. In fact, my whole event sheet rather looks more like programming code.

But so far, I do not see any problem. Everything works accordingly. Has anyone got some sort of such Javascript errors here? How stable is the function calling in C2?
keroberos2013-05-11 15:56:44
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
24
S
9
G
11
Posts: 408
Reputation: 8,040

Post » Sat May 11, 2013 4:46 pm

No I wouldn't worry about it.

[quote] Just be sure to not call functions each tick ... or you'll get Javascript errors ;)[/quote]
That's a fairly odd thing to say.
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sat May 11, 2013 4:54 pm

@ramones , My bad I meant "Just be sure to not loop functions each tick ... or you'll get Javascript errors ;)"

Here's an example showing that !Whiteclaws2013-05-11 16:54:30
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Sat May 11, 2013 5:03 pm

ummm. wow.

The correct line is

"Just be sure to not loop functions each tick ... or you'll get Javascript errors ;)"


edit: LOL the article writer a reply while I was typing mine :D
so never mind :Djayderyu2013-05-11 17:05:12
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834

Post » Sun May 12, 2013 2:45 pm

Oops, your project is using beta C2 release. I can't view that. Mind just take a snapshot of your event sheet so that I get the exact point instead?
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
24
S
9
G
11
Posts: 408
Reputation: 8,040


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 17 guests