Jump to content

Invisible custom bounding shape - AncientBeast.com


Dread Knight
 Share

Recommended Posts

Hello! I'm founder of www.FreezingMoon.org - we're indie game developers working on an open source browser based TBS www.AncientBeast.com
We're considering adopting a game/rendering engine in order to make the game more playable on tablets and phones https://github.com/FreezingMoon/AncientBeast/issues/425
 
The gameplay coder has a question:

Is it possible to have invisible elements triggering events (like clicking) with custom bounding shape (hexagonal in our case)?

 

 
Also, what's the state of documentation? Would rather see that instead of almost daily change log xD
 
So far Phaser looks awesome, I really dig the website :-)

post-356-0-25633400-1380220998_thumb.jpg

Link to comment
Share on other sites

You can have an object be disabled from rendering but still detect clicks, yes. There is an option for 'pixel perfect' click detection, which would work for your hexagon shape, but you may find a better solution using some kind of polygon <-> point detection instead and just use the sprite for the containing bounds.

 

Docs will be done next week.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...