Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Non-sandboxed filesystem

Work with files in all accessible places in GameMaker games. · By YellowAfterlife

sprite_add_ns doesn't work on GMS 1.4

A topic by VarmaKrapula created Aug 29, 2020 Views: 207 Replies: 1
Viewing posts 1 to 2
The title says it all. Sprite exists with file_exists_ns -function but sprite_add_ns doesn't seem to find it. The functionr returns a value of -1.
Developer

Try doing

if (!directory_exists(game_save_id)) directory_create(game_save_id)

before doing sprite_add_ns - it has to store the sprite somewhere, and last few versions of 1.4 were updated to no-longer auto-create the save directory.