HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.97k stars 434 forks source link

FlxCamera.color is not functional #3207

Open DetectiveBaldi opened 3 months ago

DetectiveBaldi commented 3 months ago

Using the following sample results in a untinted white graphic, the expected output is for it to be tinted red:

package;

import flixel.FlxG;
import flixel.FlxSprite;
import flixel.FlxState;

import flixel.util.FlxColor;

class PlayState extends FlxState
{
    override function create():Void
    {
        super.create();

        add(new FlxSprite().makeGraphic(640, 480, FlxColor.WHITE));

        FlxG.camera.color = FlxColor.RED;
    }
}

image-11.png

Geokureli commented 3 months ago

Thanks I'll take a look!