User Tag List

Results 1 to 10 of 10

Thread: Getting objects to drop down in a row

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting objects to drop down in a row

    I'm trying to make a puzzle game with the very standard mechanic in which there's several rows of gems, and clicking on one gem destroys it, and the rest falls down. Like this:

    ****
    ****
    ****
    ****

    I'm really struggling with how to accomplish this in a smooth fasion? How do you apply gravity in the best way? I've tried adding simple programmed gravity (like y=y+1), and I've tried using the platform movement, but I need the objects to be able to have different directions at all times (the platform movement keeps setting the direction to down). I've also tried the Box2D, but it's kinda buggy once you export the swf file, and I want to be able to make the iOS later on.

    Any ideas?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    I remember I tried to do the same awhile ago I ended up building my own engine for what I wanted using fast loops. But it has it's own set of problems :crazy: I did however manage to make a flash game out of it Shoot Down
    Have you tried the AGBO (Advanced Game Board Object)?
    It can do what you want and is Flash compatible. It also has a good help file and some great examples with it.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    Is the AGBO iOS compatible? I'll give it a try and see if it works.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    You can look at the source for my 20 event competition game. It features collapsing blocks with flash-compatible extensions.

    Whether you'll beable to decipher it all depends on your experience with fast loops, targetting objects with IDs and moving objects around with x-y coordinates (ignoring the built in movements).

    http://www.gamebuilder.info/world/content/eve-arcade

    There are probably some examples floating around in the file archive too, I'd do a search there.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    Those are some truly impressive games you have there Ryan

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    Also, way more advanced than I understand. That's why I want to make Flash or iOS game, to not get in over my head. Really, there has got to be a simpler way of just adding some gravity or whatever to the world. I've tried just using the platform movement, and it works really well as an exe, but when exporting as swf it just bugs out, and it can't really figure out the collisions.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    Here's the mmf file I'm working with. It would be so extremely helpful if someone sould show me how exactly to accomplish what I want to accomplish, I'm really trying to learn here. It seems like it would be easy, but it's really starting to frustrate me!

    View MFA


  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Ryan's Avatar
    Join Date
    Nov 2008
    Location
    Australia
    Posts
    1,279
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    I'd suggest looking into AGBO, if that fails, hopefully this simple logic can help you work through it.

    If object has been destroyed or has fallen:
    - Was there an object above it (Y position - Y spacing)
    If so, select this object and
    - Set Y position to Y position + Y spacing

    Repeat for all objects, work from the bottom up so that there isn't any messy overlaps.

    To repeat for all objects you can use fast loops and select each object by ID. There's a great fastloop tutorial kicking around the tutorials section of the clickteam website.

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    I'll take alook at the fastloops and AGBO, thanks.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Aug 2010
    Location
    Sweden
    Posts
    351
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting objects to drop down in a row

    I do get the logic of what you mean, but how do you check if there is an object beneath or above another object? Is there a ray cast function or similar in mmf?

Similar Threads

  1. Drag and drop movement- force drop action
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 7th April 2013, 09:53 PM
  2. Drag & drop without drag & drop object.
    By soloman in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 20th August 2011, 02:45 AM
  3. Drag and Drop
    By legocacher in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th December 2010, 11:30 PM
  4. Drag/Drop objects between Sub-Application windows?
    By Mizgiwir in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 18th October 2010, 12:31 AM
  5. Drag n Drop
    By faeriebass in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 23rd July 2009, 07:23 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
  •