Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlxStrips appear full black when debugDraw is enabled #2904

Closed
Geokureli opened this issue Aug 25, 2023 · 0 comments · Fixed by #2906
Closed

FlxStrips appear full black when debugDraw is enabled #2904

Geokureli opened this issue Aug 25, 2023 · 0 comments · Fixed by #2906

Comments

@Geokureli
Copy link
Member

Affects html5 but not Mac builds. no other targets tested. I've seen similar issues when testing on mac targets, though

Example:

package states;

import flixel.FlxG;
import flixel.FlxStrip;
import flixel.graphics.tile.FlxDrawTrianglesItem;

class BlackDebugSliceSpriteTestState extends flixel.FlxState
{
    override function create()
    {
        super.create();
        
        FlxG.camera.bgColor = 0xFF808080;
        
        final strip = new FlxStrip(50, 50, "assets/images/haxe.png");
        strip.vertices = DrawData.ofArray([0.0, 0.0, 80, 0.0, 40, 40]);
        strip.indices = DrawData.ofArray([0, 1, 2]);
        strip.uvtData = DrawData.ofArray([0, 0, 0, 1, 1, 1.0]);
        add(strip);
        
        FlxG.debugger.drawDebug = true;
    }
}

Using this image
haxe

Here's how it looks when debug draw is false:
Screenshot 2023-08-25 at 5 45 58 PM
true:
Screenshot 2023-08-25 at 5 48 38 PM

@Geokureli Geokureli changed the title FlxStrips appear full back when debugDraw is enabled FlxStrips appear full black when debugDraw is enabled Aug 25, 2023
UncertainProd added a commit to UncertainProd/flixel that referenced this issue Aug 28, 2023
Geokureli pushed a commit that referenced this issue Aug 29, 2023
swordcube added a commit to swordcube/flixel that referenced this issue Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant