User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Physics - Falling blocks

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceió - Brazil
    Posts
    927
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Physics - Falling blocks

    Hi everyone

    I'm making a application where I have several blocks. The block falls due gravity and when it collides with other block or obstacle, it stops. I not can make the condition of collision between two blocks... Does anyone a suggestion to make this?
    Ah, I can't use extensions.

    Sorry for my English...

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    The Advanced Gameboard Extension?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceió - Brazil
    Posts
    927
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi Marv,

    Is a great solution. I had not thought about it But, without extensions, there other way?

  4. #4
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could attach small invisible detectors. When one of the detectors overlap another block, stop the movement. This was the method I used for the dropping ions game at the URL below.

    http://www.darngoodsolutions.com/mms/chemmodules.htm

    Steve

  5. #5
    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)
    This can be done with detectors like drnebula suggested. I personally like to avoid detectors if possible however since it adds unnecessary objects that might slow down your game. I tried to figure out a solution to this problem that didn't use detectors or extensions but ran into trouble. I'm also interested in seeing a solution.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The built in 'collision' and 'overlap' condition does not work exactly how you would expect them to, and might easily produce unwanted results.

    I would suggest creating a manual collision detection condition by compairing to the two objects 'edge possitions'.
    If you do this collisions will work as expected, but as a side effect you will in sertain situations need to handle each instance of a colliding object individually, by using a FastLoop or the ForEach object

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jan 2012
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was playing with the pinball movement, it seems, without extensions you can 'fake' bounce or collide blocks with other blocks and or backgrounds, get them to bounce or rotate upon collision, gain some Y altitude and speed and then loose the altitude speed over time...you could create your own movement or just programatically change the pinball movement to work for ya... You can stop the movement when the speed gets slow enough or when the object gets close to the bottom or wherever you want it to stop. Try messing with pinball movement at very low gravity and speed and mess with deceleration. I think you could program a angry bird block falling physics by varying the pinball movement of objects as they collide.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jan 2012
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think he is saying that IS his problem they are stopping, I think he wants them to interact in a 'real' way, bounce then stop and settle if gravity permits, but perhaps I misunderstand (it happens all the time)

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Ls2's Avatar
    Join Date
    Jun 2011
    Location
    Maceió - Brazil
    Posts
    927
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi all,

    Collision between block and block don't work because if I have a "queue" with three blocks and the first block (the next to floor) is destroyed, the second block don't fall, 'cause it is colliding with the third block. Netflyer165, I tried make what you suggest, but don't work here :/

  10. #10
    Clicker Multimedia Fusion 2

    Join Date
    Aug 2011
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello, is this something similar to what you're looking for? View MFA

    Use the mouse to remove blocks. Press Space to create more.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Physics question! Making AI that uses Physics Platformer/Physics Static movement
    By Krim in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th December 2013, 03:19 AM
  2. Using physics objects with non physics movements
    By Redsquirrel in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 11th December 2013, 01:51 PM
  3. Possible to make some simple object fall physics without physics engine?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd March 2012, 08:56 AM
  4. stacking falling blocks
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 21st July 2008, 10:21 PM
  5. Dropping blocks
    By RobTheBuilder in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 24th November 2007, 10:50 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
  •