Mouse/ Graphical issues.

Get help using Construct 2

Post » Mon Oct 12, 2015 11:11 pm

K, haven't used Construct in a minute here but I need help with this since yesterday:

When mouse is over a graphic I want the graphic to change either to a new animation or to another frame, when mouse clicked on an object,etc, same when it is the opposite as well, i'm gonna need the graphic to change back, I've heard of using else statements but I guess i'm a tad too dumb to fully understand it and I need a little hand holding.
B
15
S
3
Posts: 45
Reputation: 1,040

Post » Tue Oct 13, 2015 1:04 am

Hey Curio,

Add the mouse object to your project if you haven't already. The condition you are looking for will be "Cursor is over object".

Looks like this:

1. Cursor is over object (graphic) -> Graphic set frame (or animation) to = what you want.

Next event below it

2. Else (from the system menu - the picture of the cog) -> Same graphic set frame to 0 (or default animation).


This will change your graphic as the cursor moves onto it and flip it back when not touching.
ImageImage
B
119
S
23
G
7
Posts: 1,070
Reputation: 12,989

Post » Tue Oct 13, 2015 4:39 am

GenkiGenga wrote:Hey Curio,

Add the mouse object to your project if you haven't already. The condition you are looking for will be "Cursor is over object".

Looks like this:

1. Cursor is over object (graphic) -> Graphic set frame (or animation) to = what you want.

Next event below it

2. Else (from the system menu - the picture of the cog) -> Same graphic set frame to 0 (or default animation).


This will change your graphic as the cursor moves onto it and flip it back when not touching.


:lol: Thank you so much, it took me like a day to get even close to the solution, again thank you! :D
B
15
S
3
Posts: 45
Reputation: 1,040


Return to How do I....?

Who is online

Users browsing this forum: Fenix18, tarek2 and 52 guests