r190 preview error Java with just simple sprites n container

Bugs will be moved here once resolved.

Post » Thu Nov 27, 2014 6:13 am

Problem Description
Event three of my experimental file causes a error
Image

Attach a Capx
https://dl.dropboxusercontent.com/u/5214903/construct2/catapult%20test.capx

Description of Capx
just a sprite spawning two sprites with bullet behavior

Steps to Reproduce Bug
  • Step 1- create two sprites.
  • Step 2- Add green sprite to blue sprites container
  • Step 3- Make another sprite create blue sprite. This basically spawns both, green and blue sprite because of being associated in container
  • Step 4- on creating blue sprite, add action to create green sprite by blue sprite again. This action creates the error

Observed Result
On preview i get black creen and a error report on chrome while on firefox its just black screen.
Disabling event 3 doesnt give the error. Updating Java didnt work.

Expected Result
just spawn sprites and spawn one more time the green sprite by my logic

Affected Browsers
  • Chrome: (YES)
  • FireFox: (YES)
  • Internet Explorer: (YES)

Operating System and Service Pack
Win7

Construct 2 Version ID
r190
B
47
S
10
G
5
Posts: 232
Reputation: 7,561

Post » Thu Nov 27, 2014 1:42 pm

It's not a bug. You have set up your events to recurse infinitely on startup, so in this case the error message is correct.

When creating Sprite5, it fires 'On created', which creates a Sprite4, which is in a container so also creates a Sprite5, which fires 'On created', which creates a Sprite4, which is in a container so also creates a Sprite5...
Scirra Founder
B
387
S
230
G
88
Posts: 24,251
Reputation: 192,464

Post » Fri Nov 28, 2014 5:05 am

i see.. thankyou for the explanation
B
47
S
10
G
5
Posts: 232
Reputation: 7,561


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest