Ah, thanks a lot, does exactly what I want! Not sure how I missed that :P
Sami Habib
@Sami Habib
Posts made by Sami Habib
-
RE: FlxCamera render only chosen objects
-
FlxCamera render only chosen objects
How can I make a Camera render only specified objects? I realise that I can give all other objects a separate camera but it'd be handy to say "don't render anything except these couple of objects", so that I don't have to mess about with their cameras. Is that at all possible?
-
RE: Developing for Android
Try compiling to neko, see if that crashes as well. It's much easier to debug desktop targets than it is mobile, and is really helpful when it's not a platform-specific issue.
-
RE: Can't modify preventDefaultKeys?
Ah you're right, that was the problem. Thanks a lot!
The
@:allow(flixel)
at the top of FlxKeyManager confused me, so I just assumed it was something on Flixel's end. -
RE: Can't modify preventDefaultKeys?
I get
Invalid field access
on the line where I try accesspreventDefaultKeys
. Everything is up to date. -
Can't modify preventDefaultKeys?
I'm developing for mobile and would like to give the back button on Android a different function than the default of closing the app. I tried accessing
FlxG.android.preventDefaultKeys
and giving it a value of[FlxAndroidKey.BACK]
but unfortunately the app crashes on launch. Testing it on neko usingFlxG.keys.preventDefaultKeys
reveals that I'm not allowed to access it, which seems to be becauseFlxKeyManager
is only given access permission within the flixel package. Certain fields such aspressed
andjustPressed
can be accessed outside of it because they have the(default, null)
, butpreventDefaultKeys
does not.Is this a bug or am I just going about this the wrong way?