Mouse events using an actor's collision shape(s)

Alexin

  • *
  • Posts: 3132
The built-in blocks to check for mouse events on a particular actor use its current image. However, if you want a circular button or a more complex shape, for example, then a collision shape is the way to go.

The behavior is called Mouse Event On Collision Shape and is available on StencylForge. You need to attach it to the actor that should check for mouse events and use its custom blocks just like regular mouse blocks.

Enjoy!
"Find the fun"
alexin@stencyl.com

HNF

  • Posts: 232
Thanks! This will be great for circular actors as well as for isometric games where actors are diamond shaped.

neocite

  • Posts: 26
Where get this extension?

Alexin

  • *
  • Posts: 3132
It's a behavior, not an extension.

Quote from: Alexin
The behavior is called Mouse Event On Collision Shape and is available on StencylForge.

I don't know if it's still there or if it works.
"Find the fun"
alexin@stencyl.com