How to control sprite's instances from sliders

Get help using Construct 2

Post » Sun Sep 02, 2012 7:34 pm

Here we are, again trying to finish this project. So far, we have done great improvements and advances learning about Construct 2. But, now things turn into something a bit more difficult.

As you can see in the project, there are 3 sliders supposed to control 3 different sprites. While each slider shows its value on a different textbox, the value affects all the instances of the sprites. It's quite a mess.

I would like to know, how to solve this. It is possible to assign each slider and textbox to an sprite instance? Is correct the code as it is now?

Here the challenging project:
project
B
16
S
4
G
1
Posts: 105
Reputation: 1,829

Post » Sun Sep 02, 2012 10:45 pm

Here you go!

Basically, you need an ID variable to keep track of which button belongs to which slider to which image. I also added a for each loop so we check all the sliders.sqiddster2012-09-02 22:55:00
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Sep 04, 2012 3:28 am

Wow! That was the clue I was looking for!

You're great! The issue is properly solved.

Two thumbs up!
B
16
S
4
G
1
Posts: 105
Reputation: 1,829

Post » Tue Sep 04, 2012 11:30 am

No problem, glad I helped.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400


Return to How do I....?

Who is online

Users browsing this forum: ETgirl79 and 14 guests