r197-Create family sprite in container;strange things happen

0 favourites
  • 1 posts
From the Asset Store
Fully commented source code/event sheet & sprites to create a space shooter game
  • Problem Description

    Looking at this thread, the move to layer action didn't seem to be working properly for the sprites when spawned as family objects.

    Attach a Capx


    Description of Capx

    There are two sprites (Sprite1 and Sprite2) in the same container and family (Family1).

    Every 0.2 seconds a Family1 is created.

    Every tick the text is set to Sprite1.PickedCount.

    Steps to Reproduce Bug

    • Run the capx
    • Check the PickedCount

    Observed Result

    Sprite1.PickedCount == 1

    Expected Result

    Sprite1.PickedCount == the number of Sprite1s


    Enable event 3 that loops through the Sprite1s

    Now Sprite1.PickedCount shows the correct number

    Affected Browsers

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

    Operating System and Service Pack


    Construct 2 Version ID


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)