Sprite containers and image points in families

0 favourites
  • 8 posts
From the Asset Store
Connect the dots in the correct order and draw happy animals!
  • I don't know if sprite containers and image points works in families but I'm not getting this. I'm using containers to spawn all sprites together and several image points to positioning these sprites in right places. Thanks in advance.

  • Could you give an example of your capx/events?

  • Hi LittleStain

    Something like this (with more sprites)

    https://www.dropbox.com/s/e1lwu0ai69hoz ... .capx?dl=0

  • If you destroy all instances of sprite, sprite3, sprite4 and sprite5 on start of layout, it works better..

    Although I'm not sure what you are trying to achieve..

  • I need the c2 spawns the small squares for all instances of sprite and positioning them in the right image points.

  • Well your family contains both a Sprite5 and a Sprite, So setting sprite3 and sprite4 to family1 will set them to either Sprite5 or Sprite..

    If you only want to set them to Sprite, use Sprite instead of family..

    Or make sure ypu reference the right object..

    Being in a container with Sprite automatically the right sprite3 and sprite4 are used when picking sprite..

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Well your family contains both a Sprite5 and a Sprite, So setting sprite3 and sprite4 to family1 will set them to either Sprite5 or Sprite..

    If you only want to set them to Sprite, use Sprite instead of family..

    It was this way before, but I'll need to use a family to better control the sprites and their variables

    [quote:3hm606yi]Being in a container with Sprite automatically the right sprite3 and sprite4 are used when picking sprite..

    Why it is not happening in the example that I done?

  • Because you use family1 in the action and not Sprite, so if there is a Sprite5 and a Sprite object, Construct2 doesn't know which instance of family1 you mean..

    Like I said, if you pick the Sprite-object, this will automatically reference the right Sprite3 and Sprite4, but you are not picking anything in your event..

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