cursor is over sprite

Discussion and feedback on Construct 2

Post » Tue Jun 12, 2012 2:52 pm

I have two sprites (and sprite1 sprite2), and would like when placing your mouse over a sprite, the other to appear. The problem is when I take the mouse, the sprite2 continues. Can anyone help me?


CODE:

MOUSE | cursor ir over sprite1|sprite2 set position(x,y)
B
3
Posts: 10
Reputation: 295

Post » Tue Jun 12, 2012 3:10 pm

Maybe just set sprite 2 to invisible at startup, then when mouse is over sprite 1, set it to visible and vise versa
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Tue Jun 12, 2012 3:25 pm

how I define the variable on startup?
B
3
Posts: 10
Reputation: 295

Post » Tue Jun 12, 2012 3:34 pm

If you click on your sprite 2 in the IDE and look at the left hand side of the screen you'll see a number of properties specific to that sprite's instance. At the bottom of that list you'll find an option for "Initial Visibility".
B
56
S
20
G
7
Posts: 305
Reputation: 8,754

Post » Tue Jun 12, 2012 3:36 pm

I managed to solve
B
3
Posts: 10
Reputation: 295


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 8 guests