The Daily Click ::. Forums ::. Klik Coding Help ::. From Java to MMF2
 

Post Reply  Post Oekaki 
 

Posted By Message

Matthew J



Registered
  06/10/2010
Points
  108
12th June, 2011 at 23:02:01 -

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

Cheers,
matthew

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49978

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
13th June, 2011 at 00:07:00 -

Use groups and loops!

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

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
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.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1960

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
13th June, 2011 at 14:15:19 -

Or if you already know some programming, you might even consider writing a lot of your game in Lua/Python.

 
n/a

Phredreeke

Don't listen to this idiot

Registered
  03/08/2002
Points
  4504

You've Been Circy'd!VIP MemberPS3 Owner
13th June, 2011 at 14:22:29 -

Going from Java to MMF is sorta like going from this
Image
to this
Image

 
- Ok, you must admit that was the most creative cussing this site have ever seen -

Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
13th June, 2011 at 18:30:22 -

Shouldn't it be otherwise, cause it's way faster to make games in mmf than in java... as far as i know about it.

 
Code me a sausage!

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
13th June, 2011 at 19:54:31 -

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

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
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.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
14th June, 2011 at 03:23:53 -

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.

 
Code me a sausage!

Hagar

Administrator
Old klik fart

Registered
  20/02/2002
Points
  1692

You've Been Circy'd!Teddy Bear
14th June, 2011 at 09:47:51 -

I would say Java is more like this

Image

(not a fan of java )

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
4th July, 2011 at 22:13:31 -

Java is the way forward. Its much more versatile.

 
n/a

Jenswa

Possibly Insane

Registered
  26/08/2002
Points
  2722
8th July, 2011 at 17:56:38 -

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?


 
Image jenswa.neocities.org
   

Post Reply



 



Advertisement

Worth A Click