Code: Select all
load_music:3 (/directory/here/slash_at_front_means_relative.mp3)
Or for graphics:
Code: Select all
load_tileset:2 (C:/or/this/to/directly/grab/a/file.bmp)
Moderators: Bob the Hamster, marionline, SDHawk
Code: Select all
load_music:3 (/directory/here/slash_at_front_means_relative.mp3)
Code: Select all
load_tileset:2 (C:/or/this/to/directly/grab/a/file.bmp)
Well, I was hoping going to give the player in the game an MP3 Player (more like ogg player), and the player could put custom music files in it to play during the game. Or maybe one could use it to make "texture packs" for OHR games?TMC wrote:What were you hoping to use that for?
Those were just examples. A game that could be customized with outside resources would open up many new possibilities.Spoonweaver wrote:First: I'm sorry but why wouldn't a player just play their own music and mute the game? No programming necessary and it's already available on all OHR games.
Second: Texture packs for 2d games aren't a thing.
/thread
I agree with this sentiment. Or, if not reading files from game.exe's directory, at the very least being able to create persistent metadata that could be used for things like new game +. Or bonus features/areas if you replay the game after certain conditions are met in a prior playthrough.Taco Bot wrote: Those were just examples. A game that could be customized with outside resources would open up many new possibilities.
Dang. I did not even know about this. I'll have to look into it in detail some more at some point, thanks for the heads up.TMC wrote:To expand on Mystic's answer, you can store data in a hidden save slot (script commands can access up to 33 save slots regardless of the number visible on the save/load menu) by using the importglobals and exportglobals commands.