Created Object Overload Check Error

Bugs will be moved here once resolved.

Post » Mon Feb 17, 2014 2:11 pm

Link to .capx file:
heroesonlegends.com/runner.capx

Steps to reproduce:
1. Play layout

Observed result:
"Javascript error!
too much recursion
localhost:50000/preview.js, line 2385 (col undefined)

This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer"


Expected result:
2 objects created side by side, triger by the last object created.

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
W7 SP1 64bits

Construct 2 version:
    161 64bits
B
22
S
4
Posts: 106
Reputation: 1,360

Post » Mon Feb 17, 2014 5:32 pm

Closing as not a bug: since you create the same object in 'on created', which then fires on created which creates another etc., you immediately infinitely recurse forever.
Scirra Founder
B
399
S
236
G
89
Posts: 24,525
Reputation: 195,382

Post » Mon Feb 17, 2014 9:13 pm

But i placed a control with "if tileset<2", it adds 1 to tileset each time is called, so it shouldn't be call at the third time.
B
22
S
4
Posts: 106
Reputation: 1,360

Post » Mon Feb 17, 2014 11:49 pm

It recurses in the 'spawn' action so it never actually adds 1 to the variable. Move the add action before the spawn action and it works.
Scirra Founder
B
399
S
236
G
89
Posts: 24,525
Reputation: 195,382


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests