Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

[suggestion] Could we return a default value of the fauxton_calculate_sprite_lighting

A topic by Zhanghua created Jan 06, 2022 Views: 93 Replies: 1
Viewing posts 1 to 3
(1 edit) (+1)

Counld this lib return a default value of the fauxton_calculate_sprite_lighting ?

Or throw an error if there is no WorldEnvironment?

function fauxton_calculate_sprite_lighting(_x, _y, _z, _ogColor){

// If no world environment exits exit;

if ( !instance_exists(WorldEnvironment) ) { return c_white; }// while not exit, make the implement uni-formal.

Good catch! I need to update fauxton on quite a bit of things honestly. haha. It's mostly just an initial framework that people can use to build off of. Thanks for the suggestion! :)

moved this topic to Suggestions