Problem with Object Destruction

Just started using Construct 2? Post your questions here

Post » Wed Mar 05, 2014 12:59 am

Hello Guys,

I'm trying to do a a User Interface that, when you hover over an object it creates another object that you can click. The problem is that I dont want that new object to be there forever if you're not hovering the initial object so I decided that it should be destroyed after a few seconds (to gave the player time to go to the new object).

What I Can't solve is how to make Construct2 detect that the pointer is not hovering and destroy that new object.

I tried setting up a Global Variable that changes when you hover from 0 to 1 but I dont now how to revert it except if its every X seconds and after the first destruction the next ones are instantaneous with that method.

Thanks in advance.
B
4
Posts: 6
Reputation: 237

Post » Wed Mar 05, 2014 6:32 am

Invert the event "Mouse is over Object XY"
hover == 1
wait 5 seconds
set Hover 0
destroy objects
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Sat Mar 08, 2014 2:02 pm

thehalfleprechau you mean something like this
You do not have the required permissions to view the files attached to this post.
B
245
S
37
G
15
Posts: 1,939
Reputation: 40,087


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests