Ah, thanks a lot, does exactly what I want! Not sure how I missed that :P
Posts made by Sami Habib
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?
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.preventDefaultKeysand giving it a value of
[FlxAndroidKey.BACK]but unfortunately the app crashes on launch. Testing it on neko using
FlxG.keys.preventDefaultKeysreveals that I'm not allowed to access it, which seems to be because
FlxKeyManageris only given access permission within the flixel package. Certain fields such as
justPressedcan be accessed outside of it because they have the
(default, null), but
Is this a bug or am I just going about this the wrong way?