how do i, each sprite responds uniquely?

Get help using Construct 2

Post » Sat Jul 29, 2017 3:06 pm

Hello, :D

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 :oops:
B
7
S
1
Posts: 47
Reputation: 558

Post » Sat Jul 29, 2017 3:38 pm

@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.
B
19
S
8
G
3
Posts: 432
Reputation: 3,978

Post » Sat Jul 29, 2017 5:25 pm

Mouse On right button clicked -----------> Sprite go to Mouse X,Y position
System pick random instance (Sprite)
B
36
S
10
G
9
Posts: 212
Reputation: 6,945

Post » Sun Jul 30, 2017 10:26 am

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. ;)
B
7
S
1
Posts: 47
Reputation: 558


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, marc254, tarek2, Yahoo [Bot] and 28 guests