@DemDim sorry it took so long to solve but I'm glad you got there in the end. It's good to know about the FlxRect on android. Maybe I'll mention it to the maintainers.
Posts made by RichardBray
-
RE: FlxSave on Android
-
RE: How do I access a variable from another FlxSprite class?
The solution of [sprite].x should work fine. Maybe you are not creating an instance of the sprite? Would it be possible to see some code?
-
RE: Command center abruptly closing
What do you mean by "command center"? Is this the windows command prompt?
-
RE: Automatic publishing of Flixel project to github pages stopped working abruptly
I think this might be a question for @Gama11 if you're using the flixel GitHub template.
-
RE: Unresolved Identifier Error Won't Go Away
Yeah, good spot, clickPlay() was your issues. I guess anyone else who has this issue will be able to find this thread in the forums :)
-
RE: Intellij IDEA doesn't show auto-complete for assets
Nice, glad you figured it out. I mainly use Haxe in VS Code so I wouldn't have been able to help out :(
-
RE: Change color of button label in `FlxUIRadioGroup`
Glad you figured it out. I haven't used Flixel UI before so I asked around in the Discord channel. Looks like you reached it before the people on there 🙂
-
RE: FlxShapeArrow overconstrained?
Fair enough, IMO I tend to draw simple sprites and use that instead of using the shapes provided by flixel (unless it's a simple box, FlxSprite is good for that).
But yeah welcome to the world of HaxwFlixel, if you have any more questions feel free to as them in the forum, or discord channel. The community here is small but really friendly.
-
RE: Spam bots running rampant
@Geokureli I am now an admin 👏 🎉
So if you spot any spammers I'll delete their threads and ban them 🙅🏿♂️ ⛔️ -
RE: FlxShapeArrow overconstrained?
Hey Harold,
Yes, you are correct, the X and Y params are used for FlxSprite since FlxShapeArrow extends FlxShape which extends FlxSprite.
If I'm being completely honest my knowledge of the shapes in Flixel is a little rusty. Out of curiosity are you planning to move from shapes into your own custom sprites?
If you're able to check out the HaxeFlixel channel in the Haxe Discord server I feel like someone over there would be able to help out https://discord.gg/aZus3R
-
RE: Shader scale offset problem?
Nice, glad you figured it out. I'm curious as to why to used texture2D() and not flixel_texture2D() on line 20?
https://github.com/jobf/haxeflixel-pixel-scaling-shader/blob/master/source/PixelScaleShader.hx
Also for line 16 in your shader shouldn't this work as well because of swizzling?
ec2 alpha = vec2(0.07);
-
RE: Shader scale offset problem?
Man I wish I knew enough about shaders to help you out, I'm learning but I'm not quite there yet. Have you tried asking your question on the Haxe Discord server?
Maybe you can add a link to this question on there, it's much more active than the forums.
Also, I feel like there are easier ways to scale a sprite than to use a shader. Well as in if you had a large sprite you could scale it down easily but I'm not sure about scaping up a small sprite 🤔
-
RE: Int must be Bool
I think the best people to answer that question are either Austin East and Will Blanton who have both worked on Ogmo. They frequent the HaxeFlixel Discord channel so if you have access to it I highly suggest you ask your question there.
-
RE: Multiple levels
Wow, I'm super flattered thanks for the offfer, but unfortunately, time isn't on my side at the moment :(
I'm happy to help with any Flixel related questions you have though. -
RE: Multiple levels
Ah okay, yeah there's definitely a way to do that. I'm not sure what type of game you're making but you could add a collision box to the end of the level with FlxObject or something and when the player collides with it run
FlxG.switchState(new LevelTwo());
Which will contain your new map. Let me know if this makes sense.
-
RE: Multiple levels
I haven't used Ogmo before but I'm sure there is a way. What do you mean by 'writing it all together'? Do you mean linking from the level with the first map to the level with the second map?
-
RE: Multiple levels
Hey @jgedri , it's a bit old but I do have a project you can look at, https://github.com/RichardBray/Scales-A-Pangolin-Story
Basically the way I do multiple levels is to have a parent/super class LevelState.hx, which will have most of the level data, and keep unique things in the level files themselves like LevelOne.hx, LevelTwo.hx. I hope that makes sense.
-
RE: Minicology - A microplanet space-farming survival game with an ecological bent
Love the artstyle. Looking forward to trying a demo of this when it's released.
-
RE: Windows 10: Cannot resize window after maximizing window and then un-maximizing window
Yeah, this same issue exists on the Mac. I think if you want to give the user options you'll have to have the game windowed then allow them to make it full size and close it at will.