how to add onclick

Get help using Construct 2

Post » Mon Apr 01, 2013 11:14 pm

i have a jpg, and on the top of the jpg i have a little picture, how to ad the condition "on mouse click object" and that do another action???

i have added a button, invisible, but when i add the condition on click, that dont work, i cant go to the next frame.imothep852013-04-01 23:50:02
B
27
S
10
G
6
Posts: 1,497
Reputation: 7,986

Post » Tue Apr 02, 2013 12:17 am

Why when a button is invisible, if i add onclick that dont work???
B
27
S
10
G
6
Posts: 1,497
Reputation: 7,986

Post » Tue Apr 02, 2013 12:18 am

Mouse "on object click" button
->do whatever

If its invisible i don't think it will register that its a button though.

Try not making it invisible, but simply an empty blank sprite instead if you need it to start visually invisible but still clickable
B
54
S
22
G
8
Posts: 849
Reputation: 10,489

Post » Tue Apr 02, 2013 12:20 am

but where is the condition mouse??
B
27
S
10
G
6
Posts: 1,497
Reputation: 7,986


Return to How do I....?

Who is online

Users browsing this forum: NextFriday, revengeracer and 23 guests