Page 1 of 1

Dynamic Resource Linking

PostPosted: Sat Jul 01, 2006 7:19 pm
by Sindarin
Please add a feature to dynamically load external images and sounds into the game.

For example: I have the game .exe and an image 'image01.gif' in the same folder. In game I call this code in an event
loadPicture('image01.gif','player',true)
so this will replace the current image for the actor "player" to image001.gif
which is located at the game directory. The boolean tue/false would check if the image would be transparrent or not.

Another example: I have the game .exe and a sound 'blast.wav' in the same folder. In game I call this code in an event
loadSound('blast.wav','pop.wav')
so this will replace the 'pop.wav' sound that was imported from game editor to "blast.wav" which is located at the game directory.
So when the pop sound is summoned you will instead hear the blast sound from now on.

I can find many uses for this. :)