I used to dabble with Java a lot and am so used to having multi-class applications with Getter's and Setter's.
Is there any plugin's that would allow you to do this? I'm a neat freak and it comes to my coding to. I want to make a game with many mini engines in it, like Inventories Buff bars, but I dont want all the code in one Event editor cause then its just gonna be filllllllled with events, I would wan them in different frames/levels if possible, not sure if you can though cause then i could just make a Inventory 'class' if you will with all its functions, and call the methods to add remove from the inventory. etc
Place all your code for specific tasks in a single group, and you can activate or deactivate the group to disable that groups functionality.
Another cool trick is to add the "on loop" condition to a group of events and then you can "call" the group from anywhere by running the loop once. (or more)
n/a
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
13th June, 2011 at 03:11:58 -
MMF2 is very unique in its workflow and structure for creating games. You're not going to find any OOP principles like encapsulation, but as UrbanMonk said you can neaten things up with groups.
You could also make your inventory into one active object and use all its alterable values to store only information about it.
every object has its own event sheet. they're called behaviors.
n/a
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
14th June, 2011 at 03:11:51 -
I don't think that MMF is crippled compared to other languages. There are a lot of advantages in making games in MMF compared to its limitations. The biggest pulling power of MMF is that it's super fast to create a game. Even if you're just prototyping it will almost always be faster in MMF if you know what you're doing. Then again I guess the same can be said about most languages.
It's definitly faster to make games in mmf, because the event editor is only one part, with extensions doing a lot of the work for you. You have the frame editor and picture editor, which makes graphics ten times easier to make and rearange, import, etc... you can easily just copy paste graphics beetween photoshop and mmf editor, scale them on the spot, compare them how they fit with others. And pretty much programming doesn't take that much time anyway compared to graphics.
The only thing missing in mmf to be super fast is creating objects by name. Most of my time is squandered on creating conditions for making objects.
Also with HWA, and a good code, mmf is preety darn fast anyway.
No OOP in MMF2, but most objects have their equivalent of getters and setters.
I wouldn't quite say that Java is the way forward, unless your joking of course. But managed languages probably are and Java is one of them.
You could try to import other code into MMF and see if you can write neat code that way, otherwise just use the groups as said and add some comments to write your own clean code. But the code style is more like binary blob, or not guys?