-
1 Attachment(s)
Simple level-loader
Rubes, here's a simple method to create levels and load them in the same frame. It might be hard to understand for beginners, but I commented it as good as I could :)
-
I think I used the older version of INI++. Sorry.
I will upload version 1.0 somewhere.
Marv
-
Rubes, I also made a level editor recently, but it's not commented and uses INI++ v1.5.
If you need it gimme a shout and i'll comment and upload it.
-
Blub, Nivram and Popcorn, you guys are awesome. I'm at work now, so i don't have access to mmf, and just before leaving this morning, i heard a big bang and lost all my power (it's been hot in minneapolis lately and i think that may have something to do with this). hopefully i have power when i get home, and will look at these examples then. I completely comprehend the WHY part of doing a level editor instead of frames, let's hope i can wrap my head around the how portion.
-
Popcorn, you've got a very well done demo there. I've run it and read through it, modified it and it all make sense to me. I'm not saying i could create this from scratch, but this gives me a great model and with some repetition, i will be able to replicate this. Time for me to play around now
-
Thanks, Rubes! I am glad to hear you found it useful :)
Now make some awesome break-out game!
-
1 Attachment(s)
OK, I'm trying. I have taken your example and tried to reconstruct it in a project I have started from scratch. I'm trying to just populate the screen with blue blocks, if i get this loop right, the others will fall into place, but it is not putting the blocks on the screen. Can you help me understand where i went wrong on this?
-
Yeah, you need to get rid of the quotes around yes in the alterable string. When you code, you use quotes to tell mmf that this is a string, but when you type it in the alterable string in the frame editor, the quotes will be part of the string.
Also, add 'only one action when event loops' in the event that creates the level.
And an advice, don't use the mouse-movement if you don't really have to. Instead use static movement and code the it in the eventeditor by setting x = xmouse and y = ymouse.
Other than that it seemed nice :)
-
OK, i'm coming along here. That bit about the quotes is invaluable. I'd be pulling my hairs out without that one.
Which line are you talking about for this one?
Also, add 'only one action when event loops' in the event that creates the level.
I know everyone is down on the mouse movement, and i'll address that in the future, with another one of your tutorials on fast loops so i can set the speed and have perfect collision detection :) I've got the printout of that to my left
-
You have:
* LevelCleared of paddle = "yes"
- Start loop "ReadRow"
This event will start the loop all the time as long as LevelCleared of paddle = "yes". If you add a 'only one action when event loops' condition below it, it will make the even run only once, since you don't want it to keep making the level over and over again.