Sprite selection

0 favourites
  • 3 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • Im wanting to find a way to select sprites individually from another from 1 type of sprite. Eg: Say I have a sprite called "monster1".

    Now lets say, I want to have 5 instances of this down the screen.

    I could also have it in a family group where I could action something for all 5 monsters to do at once.

    What im wanting to do for example is, say the first monster sits at say x200,y200 and im wanting to do some thing to that sprite say only, change its frame or size for example or position and not effect all the other "Monster1" sprites down the page. I can do this with multiple code blocks of the same thing, specifying what is the nearest "Monster1' to the player sprite for example and if its only the same x,y-x,y postion etc, and importing 5 of the monster1 sprites on the screen labelled Monster 1 (1-5) so I know which is which And other variables, but usually I would just specify a number for each of the Monster1 sprites so I could just individually manover it or change it etc.

    Currently, I cant find a way to do this, again only with families but they don't have instance number of a single sprite set that I can choose from, only manipulating them all? Maybe ive missed something here? I read about sprite(id) but I don't think it fits this?

    Anyone done this before, Can it be done? Thx

  • Not sure if this will help ?

    UID Test

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes that did it. I thought it was the UID somehow but had no idea how to construct the code. My example below for anyone else who needs it well this is what I constructed worked for me after reading your link a simple move sprite instance(2) X+2 pixel scroll example.

    Sry I have not got a server for direct link as yet.

    Google+

    plus.google.com/photos/109004566536949865853/albums/5847754969176467137

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