r190 preview error Java with just simple sprites n container

0 favourites
  • 3 posts
From the Asset Store
Use this game pack to create your own game, modify the existing game or simply take a look and see how it was made.
  • Problem Description

    Event three of my experimental file causes a error

    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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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...

  • i see.. thankyou for the explanation

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)