User Tag List

Results 1 to 6 of 6

Thread: Problem in the gravity for enemies

  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)

    Problem in the gravity for enemies

    Hi everyone,
    I'm having a problem. In my game, I put the same object in several positions in my frame (enemies). The condition says than if the object is not overlapping a backdrop, it'll fall (gravity).
    Well, I'm making:
    Code:
    X"Object" is overlapping a backdrop:
    - Start a loop Gravidade Object's Alterable Value G times
    - Add 1 to Object's Alterable Value G
    
    X"Object" is overlapping a backdrop
    + On loop "Gravidade":
    - Set Y position "Object" as Y Object" + 1
    This works fine when there one Object in frame, but when I put more object, the behavior of the fall is not the expected.

    Anybody can help me? :/

  2. #2
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem in the gravity for enemies

    Your On Loop condition needs to be the first condition in the event. Also you put no code in to specify which object you are running the code for, which can cause problems with multiple objects like you are experiencing.
    Working as fast as I can on Fusion 3

  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)

    Re: Problem in the gravity for enemies

    Thanks for the reply, LB, but did not understand this part:
    " Also you put no code in to specify which objectyou are running the code for, which can cause problems with multiple objects ".
    sorry for the inconvenience, but would you explain again?

    EDIT: Wooow, works fine noe. Thanks, LB!

  4. #4
    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)

    Re: Problem in the gravity for enemies

    Well, works if there two objects. To three or more, no

  5. #5
    mojofltr
    Guest

    Re: Problem in the gravity for enemies

    Here is a quick example. There are probably better ways... and I'm not sure if this one will suit your game.

    http://mfa.aquadasoft.com/upload/1312340389-Gravity_Ls2.mfa


  6. #6
    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)

    Re: Problem in the gravity for enemies

    mojofltr,

    This solution is quite interesting: D Thank you!

Similar Threads

  1. Multiple Instances problem with Gravity
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th October 2012, 05:02 PM
  2. Problem with synthetic gravity
    By KingToast in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th March 2009, 12:42 AM
  3. Reverse-Gravity Jump-Through Platform Problem
    By Raylax in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th February 2009, 12:18 PM
  4. Enemies with gravity
    By Hempuli in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 30th July 2008, 01:10 AM
  5. Simpliest way to give all enemies Gravity/Physics?
    By Zenoff64 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd May 2008, 02:31 AM

Posting Permissions

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