Cursor is over

Just started using Construct 2? Post your questions here

Post » Mon Oct 05, 2015 3:55 pm

VikiPedia wrote:Ok, do you know another way to do the same thing?

From what I understand you are trying to make it so every time the mouse cursor moves over one of the sprites they switch place right?
Here is an example of how you could do it. I haven't used any families etc. to keep it simple:

Each sprite have a Boolean variable called "Active" and only when this is true the switch will take place and will be switch for each of the sprites when the mouse cursor is not over them to avoid them flashing.

Image

Capx:
https://dl.dropboxusercontent.com/u/109921357/Sprite_switch/Sprite_switch.capx
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Sat Oct 10, 2015 8:05 am

Never mind, I replaced moving sprites with animation frames.
B
4
Posts: 12
Reputation: 224

Previous

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests