about mouse event

Discussion and feedback on Construct 2

Post » Wed Mar 14, 2012 10:19 am

i want to reach a function that when mouse is over an object,it will play "a" animation.but when mouse is not over an object,it will play "b" animation.what should i do?

thanks inadvans
B
3
Posts: 1
Reputation: 327

Post » Sat Mar 24, 2012 3:53 am

Try this:
If mouse.x , mouse.y is @ (location of object) action: "play animation a"
(default animation="play animation b"
B
20
S
4
G
4
Posts: 129
Reputation: 5,535


Return to Construct 2 General

Who is online

Users browsing this forum: Google [Bot], Lof and 0 guests