Comments (2)
Did you call setHitTester? Some code will need to decide whether or not the pointer is inside a group, since its bounds are not automatically defined. For example, if it just has "return layer", then the group will consume all clicks and they'll never reach the children or later siblings. Have a look at tripleplay for some examples.
from playn.
I manage to do what I want using setHitTester: http://git.bci.im/newton_adventure/commit/7837321e75ab4c7b7455db0b8f4027300ca67356
Result here: http://play.bci.im/newton_adventure/
from playn.
Related Issues (20)
- Raspberry Pi support (and others ARM devices too) HOT 6
- Layer.setScale(0) blows up in hit testing HOT 1
- JavaStorage is volatile HOT 2
- Automatically publish snapshots HOT 1
- Resizable window on java version? HOT 3
- gamepad support? HOT 12
- Error: uniform variables in vertex shader do not fit
- Initialize platform components lazily HOT 2
- Getting started still points at Google code site HOT 3
- Vivante GPU rendering problem
- Shutdown GLView completely HOT 1
- foreground color not working anymore using Canvas.fillText HOT 2
- NullPointerException using PlayN.net().get(url,callback) API HOT 5
- addBarrier behaves different in Java and HTML
- No documentation provided HOT 2
- Support for GIF Animations HOT 2
- Detecting keyboard modifiers (Shift, Alt, Ctrl, etc) HOT 1
- Can no longer build using Maven HOT 1
- [bug] invokes toString on an array HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from playn.