How do I make 5 or more same sprites, but each responds uniquely? Sample as soon as I click on the right mouse button only one moves, not all at the same time.
thank you in advance
Sorry for bad Englis i use google translate
Develop games in your browser. Powerful, performant & highly capable.
FabianB One way would be to assign an instance variable to the sprite and then give each instance of the sprite a unique value for that variable.
Then, on right mouse button click, if sprite.instanceNo = 1, move sprite.
Mouse On right button clicked -----------> Sprite go to Mouse X,Y position
System pick random instance (Sprite)
Thanks for the comments,
I think I had to be more specific.
I mean something like age of empires, empire earth, that you can spawn spritres that can be managed separately.
thank you in advance.