User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Make water like in minecraft ? help please

  1. #11
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I believe he is talking about having a water 'source' active, having it decrease in water level depending on empty blocks next to it that are above a surface. and then if the water reaches a block with no surface, it streams down to the next source. it's definitely possible, but probably complex if you are new to MMF.

    How I would go about it, is have a water active set up with several directions for the various water levels. Place a water source and then do a check in the four directions around it. if they are empty, place new water blocks, and have them do checks. If there is water next to it on one side, change the animation to one of the lower fluid levels. You are probably going to need to use at least one detector and fast loops to pull it off fluidly. Pun intended.

    I might try to write an example later but I'm currently at work. :/

  2. #12
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    In a game like minecraft where everything is on a grid, its not very complicated; the game iterates through every cube each 'tick', and applies physics to it based on simple math affecting its neighboring hoods. A good comparison is Conways Game of Life;
    http://en.wikipedia.org/wiki/Conway's_Game_of_Life

  3. #13
    Clicker Multimedia Fusion 2Android Export Module
    Corlen's Avatar
    Join Date
    Mar 2007
    Location
    Your House
    Posts
    848
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This wouldn't be too hard in theory, I imagine it would be like making a filler tool for an editor made with MMF2 which I have done before.

  4. #14


    Join Date
    Jul 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Chaos View Post
    but probably complex if you are new to MMF.
    I'm not new to MMF2, I tried to do it but it gone all wrong(The water created itself everywhere)

  5. #15
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Its not so much that its complicated - its a very simple effect to program really. The problem is in making it efficient and fast. Its possible in minecraft only because it renders only close cubes and has very slow tick rates, whereas if you tried to calculate 60 times per second for a whole array of water blocks, you might run into trouble.

  6. #16
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    gkinfinity's Avatar
    Join Date
    May 2011
    Location
    USA
    Posts
    284
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Okay after having the specifics explained to me I've realized it's not as complicated as I thought. I'll try to make an example as soon as I have some free time.

    Minecraft is a 3D game though obviously, and since yours is going to be 2D I can only assume that your game is side-scrolling (like Terraria). So you don't actually need to check all 4 directions around it when creating new water blocks, you only need to check the spaces to the side and the space below (water doesn't spread upwards). You will still need to check the space above (and the side spaces) to see if the source block or surrounding water blocks have been destroyed however. That's only necessary if you want the water to be able to be removed, but it's a feature I would probably include.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. CF 2.5 - Make an inventory like Minecraft or Starbound
    By SergioAndre in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd January 2014, 02:13 AM
  2. Exemple de lanceur Minecraft
    By strito in forum File Archive
    Replies: 0
    Last Post: 17th August 2012, 06:33 PM
  3. communication to a minecraft server
    By nick_Peoples in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 27th August 2011, 01:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •