Image Buttons and Clickable Images

Get help using Construct 2

Post » Thu Jun 28, 2012 7:42 pm

Hi All!

I am trying to make an image work like a button for eg. my main menu.

But this functionality I need for my game as well.

I need to be able to click on an image in the game as well.

Where is the functionality for doing this? I see it in other games, but for the life of me do not see it in the behaviors or events.

Please advise.
B
12
S
1
G
1
Posts: 50
Reputation: 1,228

Post » Thu Jun 28, 2012 7:52 pm

First of all, you need to add the "Mouse" object to your project. Then use the "Mouse: On object clicked" condition and select the object you want to click when prompted.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Fri Jun 29, 2012 1:38 am

Or you can add Touch if you'll be running on devices that don't have a mouse. Set Use mouse input to yes and touch will work for both touch and mouse.

However, unlike mouse there is no support for cursor over.
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Post » Tue Oct 16, 2012 8:57 pm

I can't seem to figure out how to do it either.

I can get it to work as a button, but I can't seem to make it work like a light switch.

https://www.dropbox.com/s/9is57fw1o14makl/OnOffSwitch.capx
B
20
S
5
G
5
Posts: 66
Reputation: 4,515

Post » Tue Oct 16, 2012 11:32 pm

B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020


Return to How do I....?

Who is online

Users browsing this forum: ETgirl79, semaso and 20 guests