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
32
S
9
G
6
Posts: 1,467
Reputation: 7,951

Post » Tue Apr 02, 2013 12:17 am

Why when a button is invisible, if i add onclick that dont work???
B
32
S
9
G
6
Posts: 1,467
Reputation: 7,951

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
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Apr 02, 2013 12:20 am

but where is the condition mouse??
B
32
S
9
G
6
Posts: 1,467
Reputation: 7,951


Return to How do I....?

Who is online

Users browsing this forum: RookieDev, tarek2, Thelegendvinny and 19 guests