Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey! Something rather odd is happening for me. Just bought this and read through the getting started documentation!
In the create event of my fx controller:

// Disable default game rendering. Call it only once.

application_surface_draw_enable(false);

// Create ppfx system.

ppfx_id = new PPFX_System();

// Create profile with all effects.

var effects = [

    new FX_Colorize(true, color_get_hue(c_orange), 200, 240),

    new FX_SineWave(true, 1),

new FX_ColorTint(true,c_fuchsia)

];

main_profile = new PPFX_Profile("Main", effects);

// Load profile, so all effects will be used.

ppfx_id.ProfileLoad(main_profile);


In the Draw event of my controller:

// Draw post-processing in full screen

ppfx_id.DrawInFullscreen(application_surface);

For some reason, my game loads with a black screen. I have tried in multiple projects with the same result. I have also tried V5 and V4 (copying the code from respective documentations online)

The object is persistent (although it's only in one room so shouldn't matter)

I have tried tried deleting this code ->  application_surface_draw_enable(false); 

and my screen then appears but without any effects. Even with the black screen there's still no effects. It's a very odd one! The example project works fine. I've imported everything correctly just by doing 'adding all'. So no idea what's going on!

(1 edit)

Hello!

I think it might be the "Automatically remove unused assets when compiling" option in Game Options > General? (I recommend to disable it)

(+1)

It seems to be that I wasn't using the Post-Draw event as specified in the documentation D: Apologies!!