Skip to main content

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

Hi Gizmo199! This shader is really cool but I'm having some issues implementing it into my game. I followed the steps you have listed on itch but I keep getting errors and all the lines of code are highlighted yellow (being unused). I put all the code in my game_control objects so the shader is applied to the application

After digging around I noticed you have 3 text files in the folders

- lib_horrifi

- shd_horrifi_fragment

- shd_horrifi_vertex

I can assume these were examples of projects but after looking at them, I can see they have code that makes the variables work. Am I supposed to plug these in? 

I'm not very experienced with shaders so i'm probaly doing a simple mistake, is there any way you can help me out?

#######################################################

ERROR in

action number 1

of Create Event

for object o_game:

Variable <unknown_object>.horrifi_enable(100139, -2147483648) not set before reading it.

 at gml_Object_o_game_Create_0 (line 4) - horrifi_enable(true);

#######################################################

gml_Object_o_game_Create_0 (line 4)

hey! So the horrifi_fragment and horrifi_vertex are the code you would put into a new shader. Then you would just put the lib_horrifi code into a blank script and use the horrify_* functions. the unknown object should be the global.__horriFi variable. I would recommend dragging and dropping the .yymps file into your game and adding the lib_horrifi script and the shd_horrifi shader.