Re: simple level editor advice
Random: I am trying to set up the exporting side of using the array. I assume that in your example you left out the portion that actually writes out the array to a file. Can you elaborate on how I might approach that? I am using the standard Array object in MMF2 just so I can keep all this simple.
Re: simple level editor advice
Easy. The array has an action "save to file". Just use that and it will nicely save all its content into a file. Same for loading.
I left it out because it's so simple :)
And keep in mind, if you don't want the user to tamper with the file, better use the MagicDeque instead of the array, because it can save the file encrypted.
Re: simple level editor advice
Well, I found that action, but I am using the following condition and it doesn't seem to be working:
+Is the index to the Y dimension at end:
-->save array to file XXXX
-->end application
I am assuming this would translate to "if the array has reached the last value defined in the y dimension (under object settings) then write a file and end the app." This would mean I need to set the array's y dimension to equal the total number of enemy spawners in my level.
I also tried to write the file on a "when spacebar is pressed" condition and it writes a file, but the file is empty when I try to read it in a text editor.
Is there an optimal condition that will basically end the program once the array has filled up?
EDIT: I figured out my issue: I had the loop start on frame start, not always. My bad.
Re: simple level editor advice
I got it working. Thanks so much for all the advice and examples.
Mobichan
Re: simple level editor advice
No problem. Glad you figured it out.
PS: I looked at your stuff. Dude, you're good :D
Re: simple level editor advice
Quote:
Originally Posted by Random
PS: I looked at your stuff. Dude, you're good :D
I agree. Your stuff's great mobichan!
Re: simple level editor advice
Thanks for the votes of confidence. I hope I can continue to make great stuff with MMF2. No offense to the geniuses on the Clickteam staff, but I really would have given up on learning MMF2 by now if it weren't for the phenominal people in the forums. You can be certain my games wouldn't exist without your help. ;) Now to start actually making my levels...
Re: simple level editor advice
Quote:
Originally Posted by mobichan
but I really would have given up on learning MMF2 by now if it weren't for the phenominal people in the forums.
and you're also doing things that most people wouldn't try/learn until they've used MMF for a few years... unless they've already have some programming background beforehand
Re: simple level editor advice
sorry i haven't been on for a while..
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=88898#Post88898