Page 1 of 1

games that support external files

PostPosted: Wed Sep 07, 2011 1:21 pm
by j2graves
This may have been requested before, but I'm not sure.
There are games out there that allow players to import their own images and songs into the game. This allows for user-created content without the hassle of programming an in-game editor. Would it be possible to give GE a feature like this? the way I imagine it, you could make an actor, give it its events, and then in script editor (or from the list) you could add the function "getMusic" or "getAnimation". for getMusic, you could set what kind of sound files are compatible. for getAnimation, you could set the limits of the dimensions, and whether the upper left pixel will be set to transparent or not. Of course, in both situations, when executed in the exported game, a window will appear over the actor that has the event, which requires the player to type the file directory. And in the case of animations, specify whether it's single file or multiple file, x frames, y frames, and so on.

Re: games that support external files

PostPosted: Wed Sep 07, 2011 4:31 pm
by ikarus
I'm confused???

Re: games that support external files

PostPosted: Wed Sep 07, 2011 9:52 pm
by Jagmaster
Makes sense to me. :) We need this if it's possible.

Re: games that support external files

PostPosted: Thu Sep 08, 2011 8:03 am
by ikarus
Jagmaster wrote:Makes sense to me. :) We need this if it's possible.

OH wait! I reread it k, user generated content! I thought you meant when making the game, I was like, "Don't we already have this?"
Cool, yeah that'd be neat have

Re: games that support external files

PostPosted: Sat Sep 10, 2011 10:32 am
by j2graves
I've been thinking more about how this would work. The way I described this above, it would only allow an actor to have one user-made animation... unless...
Unless GE has some kind of "animation holders". Basically how I imagine it would work, is that when you click on the "add animation" button in Game Editor, you'd get a dropdown menu with "New Animation", "Animation Holder" and "Placeholder". If you select New Animation, you'd get the add animation option we have in the current GE. In Animation Holder, you'd be prompted to give the new animation holder a name.

Then when you use the getAnimation function, somewhere in the function you'd assign the user-added animation to one of the Animation Holders you added. Then later, when you select "changeAnimation", you could either select from the animations you already imported to the actor in GE, or one of the Animation Holders. And whatever animation assigned to that Animation Holder would be displayed. If no animation is assigned, you'd get a Placeholder Animation (Animation Holder =/= Placeholder Animation). You can only give an actor one placeholder animation. The way a placeholder animation would work would be like how the GE logo acts as a placeholder animation for actors in GE without animations. I hope this makes sense...

Re: games that support external files

PostPosted: Tue Sep 20, 2011 9:29 pm
by SuperSonic
Didn't feral make a sprite rotator that allowed you to import gfx?

viewtopic.php?f=4&t=5869

This is what you mean right?

Re: games that support external files

PostPosted: Wed Sep 21, 2011 1:16 pm
by Game A Gogo
You can import external images, but you need to use a canvas actor to display them, and it's rather slow because GE relies solely on the CPU so you can't expect to have animations or it'd slow the whole game down. I wish GE could display a whole array at once in a canvas instead of having to make the function yourself since GE functions are faster than doing the code yourself