scene drawings shade other actors

dtrungle

  • Posts: 1938
Move the actual actor to the spot. Even though it is hidden by sprite or layer, it can still register clicks.

If you want to make it more complicated, use regions or compare x/y of the click to see if it matches where the button is.

Shishkov

  • Posts: 169
DONE!!! :)
Thank you!!!

It is a triviality, but it is make my game more flashy.
With some actors I used earlier a glowing effect written in AS3. It is a separate behaviour applied to an actor, which makes the actor glow.
Now it does not work because of drawing. How can I restore it?

dtrungle

  • Posts: 1938
I don't know.

Why don't you create a polygon image instead of using the draw polygon?

Another workaround is to use actor space as I mentioned before, you're going to have to rearrange a lot of your stuff.

Shishkov

  • Posts: 169
I have done it using actor space and calculations.
But now question is about separate behaviour for this actor

dtrungle

  • Posts: 1938
You did it wrong then.

The actor should be as is. The sprite is shown, do not use draw image.

The polygon would then be drawn but in an actor space that is behind the above actor.

Shishkov

  • Posts: 169
aaahhhh, you meant in an actor space - actor events and use there drawing. Here you are right, polygon will be behind the actor.

I have done it in scene using the calculations of X and Y of the actor and then draw image for this actor employing X and Y. So I used X and Y of the  actor space in the screen of the scene and then in the drawing mode.

But now I don't know how to apply the behaviour for my actor on the polygon. Any ideas?