Dread Knight

Invisible custom bounding shape - AncientBeast.com

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 :-)


Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.