Load image from file, without change all objects images

Get help using Construct 2

Post » Wed Jun 28, 2017 9:37 am

The objective is create a function to make a button and set an image.

The 1st object load image correct.
When the 2nd object load the image, the 1st object change the image.

Image

What's the problem?
I can't load an image for only 1 instance of the object?

Thanks
B
10
S
5
G
1
Posts: 26
Reputation: 1,452

Post » Wed Jun 28, 2017 10:02 am

You need to pick the object and in this case you could use Pick nth instance where 0 is the first button, 1 is the second button. This is essentially picking by the object's IID which is the order in which the buttons were created. Currently you are just applying to all button objects.
B
46
S
16
G
74
Posts: 2,090
Reputation: 44,189

Post » Wed Jun 28, 2017 11:02 am

plinkie wrote:You need to pick the object and in this case you could use Pick nth instance where 0 is the first button, 1 is the second button. This is essentially picking by the object's IID which is the order in which the buttons were created. Currently you are just applying to all button objects.


I try it, and don't work.
Pick nth instance, overlapping point, ....
With or without "wait" (between create and load image).

When I load an image, all instances change it.
B
10
S
5
G
1
Posts: 26
Reputation: 1,452

Post » Wed Jun 28, 2017 12:22 pm

The setting applies for all instances indeed, I think a way is to use the paster plugin rather than a sprite (that or having enough animation frames maybe)
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Jun 28, 2017 12:30 pm

Oh yeah, load image ignores picking for some reason. Oops.
B
46
S
16
G
74
Posts: 2,090
Reputation: 44,189


Return to How do I....?

Who is online

Users browsing this forum: atmas, Bootfit, Freak Workshop and 28 guests