How to create "dead zone"?

Get help using Construct 2

Post » Tue Dec 27, 2011 4:52 pm

I have feature, when player can create object on left click. You can see it in example on link. But also i need to create event when player can not create objects in blue square, but can create them all over screen, something like "dead zone" for creating objects on click. How i can do this? I look many examples on this forum, but they not answer on my question.

clickspawn_example
B
3
G
1
Posts: 7
Reputation: 669

Post » Tue Dec 27, 2011 5:21 pm

Add a sub event, If cursor is over(Object)

That way you will only be able to add objects in that zone
B
30
S
13
G
7
Posts: 740
Reputation: 7,994

Post » Tue Dec 27, 2011 5:56 pm

[QUOTE=smitchell] Add a sub event, If cursor is over(Object)

That way you will only be able to add objects in that zone[/QUOTE]

No i need create objects all over screen but not in blue zone.
B
3
G
1
Posts: 7
Reputation: 669

Post » Tue Dec 27, 2011 5:58 pm

Simply invert the condition....

Weishaupt2011-12-27 18:01:27
B
44
S
22
G
13
Posts: 723
Reputation: 14,825

Post » Tue Dec 27, 2011 5:59 pm

[QUOTE=AlexMasters] [QUOTE=smitchell] Add a sub event, If cursor is over(Object)

That way you will only be able to add objects in that zone[/QUOTE]

No i need create objects all over screen but not in blue zone. [/QUOTE]

Here you go.
B
39
S
16
G
6
Posts: 238
Reputation: 7,895

Post » Wed Dec 28, 2011 11:49 am

ohhhh.... thank you guys, I forgot about about the possibility of invert events.AlexMasters2011-12-28 11:49:45
B
3
G
1
Posts: 7
Reputation: 669


Return to How do I....?

Who is online

Users browsing this forum: Johnzo, Meqara and 1 guest