how do i separate overlapping butons

Get help using Construct 2

Post » Tue Jan 08, 2013 3:29 pm

heres the problem. i have two buttons, one is placed over the other. how do i click one without clicking the one below.

thanks.

btw: sorry the crappy english
B
2
Posts: 8
Reputation: 566

Post » Tue Jan 08, 2013 4:24 pm

If you need them to overlap. you should hide one, while showing the other, and then switch them after pressing it.
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Jan 08, 2013 4:29 pm

thanks for the replay, but unfortunately the two buttons are clones, so i cant put hide this objet because it will hide both of them.
B
2
Posts: 8
Reputation: 566

Post » Tue Jan 08, 2013 5:36 pm

You can make it one button, and simply give it 2 frames of animation. One for the "Up" state and one for the "Down" state.

then use on pressed goto frame 2
on released goto frame 1
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Jan 08, 2013 5:37 pm

This is a bit overkill for the job, but shows how to use instance variables to ID your instances and use the UID to pick the one you want to manipulate.
InstanceToUIDMapping.capx
ImageImageImage
B
67
S
19
G
123
Posts: 3,210
Reputation: 73,907

Post » Tue Jan 08, 2013 5:45 pm

There are other ways of running a different overlapping?
B
7
S
2
G
3
Posts: 2
Reputation: 2,344

Post » Tue Jan 08, 2013 5:47 pm

i already fix the deal, but thanks a lot for all the help :D
B
2
Posts: 8
Reputation: 566


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, abdalghani, Marxally and 27 guests