How do I change the image of a specific sprite instance

Get help using Construct 2

Post » Mon Jan 23, 2017 1:50 pm

I am working on a multiplayer game and I want to make it so users can use their own images for their characters. The code does seem to be working but it changes all the players and not just your player.

Image
B
10
S
4
Posts: 13
Reputation: 835

Post » Mon Jan 23, 2017 5:46 pm

The load image action replaces the animation frame which is used by all the other instances. You could create a bunch of tiny blank frames to use for this purpose. Basically just switch to one of them and load the image there.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

Post » Mon Jan 23, 2017 6:50 pm

Thanks :)
How can I make this unlimited?
B
10
S
4
Posts: 13
Reputation: 835

Post » Mon Jan 23, 2017 7:15 pm

Use something besides sprite that can have a unique image per instance. I know tiledbg can, or maybe a canvas or paster object. I seem to recall a plugin called unique sprite that can do it too.
B
92
S
32
G
109
Posts: 5,290
Reputation: 70,991


Return to How do I....?

Who is online

Users browsing this forum: Norafaithrainbow and 26 guests