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
Add a sub event, If cursor is over(Object)
That way you will only be able to add objects in that zone
Develop games in your browser. Powerful, performant & highly capable.
Add a sub event, If cursor is over(Object) That way you will only be able to add objects in that zone
No i need create objects all over screen but not in blue zone.
Simply invert the condition....
<img src="http://quak.laurig.de/deadzone.JPG" border="0" />
> Add a sub event, If cursor is over(Object) > > That way you will only be able to add objects in that zone No i need create objects all over screen but not in blue zone.
> Add a sub event, If cursor is over(Object)
>
> That way you will only be able to add objects in that zone
Here you go.
ohhhh.... thank you guys, I forgot about about the possibility of invert events.