Rocketman5
Member
So I've tried to make the sprite of an object differ whether a file called "trueColor.ini", located in a folder called "PEEKINbios" that is located in the "C:" drive, exists. In the Create event I have two variables which are set to "scene = spr_Scene00" and "escene = spr_eScene00" respectively.
I tried to enter this code in the Step event: if file_exists("C:\\PEEKINbios\\trueColor.ini") sprite_index = scene; else sprite_index = escene;, but all it does is load the escene image variable, and I got this in the Output: "Error! not allowing file operation with filename 'C:\PEEKINbios\trueColor.ini'.".
I looked up some solutions to my problem here and there, but none of which could solve my problem. I am using GameMaker Studio 2 in case you're wondering, so if it doesn't work here, any alternatives that could work are welcome.
I tried to enter this code in the Step event: if file_exists("C:\\PEEKINbios\\trueColor.ini") sprite_index = scene; else sprite_index = escene;, but all it does is load the escene image variable, and I got this in the Output: "Error! not allowing file operation with filename 'C:\PEEKINbios\trueColor.ini'.".
I looked up some solutions to my problem here and there, but none of which could solve my problem. I am using GameMaker Studio 2 in case you're wondering, so if it doesn't work here, any alternatives that could work are welcome.
Last edited: