User Tag List

Results 1 to 7 of 7

Thread: Fusion 2.5 Object Gravity Question

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Fusion 2.5 Object Gravity Question

    I wanted to ask here before I reported it as a bug in case I'm doing it wrong.

    I have a physics object with static movement.
    I have set it to stop when it collides with a background, that works fine.
    I'm trying to apply thrust movement and this is the way I'm doing it.

    I set alt value a of my active to 100 then always set the gravity of my object to alt value a as there doesn't seem to be a way to directly alter the gravity of an object.
    When I hold up arrow I subtract 1 from alt value a.
    This should lighten the gravity, ultimately reversing it.
    Nothing happens, the gravity doesn't shift.

    Can someone in the know have a look and see if it's my coding or a bug?

    The funny thing is I done it with platform movement.
    Same thing, it doesn't work if you just let it fall and press up however, if you press up and set a to - something and then jump, the reverse gravity takes hold.
    It's as if the world is not refreshing the gravity of the object normally but it does when you jump with platform movement.Physics Shooter.mfa

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Your events are not correct. Here is the fix. You need to set the objects gravity not the Physics engine.
    Attached files Attached files

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks. I'll check that out after work.

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that. Works exactly as it should now. But the gravity change is much too slow for what I'm trying to do.
    I'm going about it wrong.


    What I'm trying to achieve is a space ship with thrust movement that has to fight against gravity.
    You press up to increase thrust so you can take off and fly.
    If you let go of thrust you slow down and fall back to the ground.
    This method takes too long.

    I can do it very easy without physics but I want it to be a physics object so I can interact with the world.
    Can anyone suggest the best combination of physics object and method of manipulating it please so gravity shifts quickly?

    I know it's a big ask but if someone can advise the very basics where to start, I can take it from there.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You shouldn't be modifying gravity. Add to the Y Velocity when you hold up to accelerate in that direction.

  6. #6
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, will give that a go.
    I'm a bit of a noob in the physics department so my questions and methods may seem a tad silly!

    I'm more of an old skool platform creator normally

    Cheers for the tip.
    I'll try that after work.

  7. #7
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    scottige's Avatar
    Join Date
    Jul 2006
    Location
    Scotland
    Posts
    411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've managed to get my object moving by applying linear velocity but I can only get it moving in 1 direction at a time.
    How do you go about applying 2 different forces?
    How do you apply x and y forces independently for example?

    If I'm applying force at 90 degrees to go up, I can't apply 0 degree force at the same time to go right and vice versa.
    It's one or the other.
    Are multiple forces possible?

Similar Threads

  1. How to add gravity jumping using PMO object
    By path in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 11th May 2013, 11:31 PM
  2. Some help in object gravity?
    By Storsorgen in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 11th July 2012, 05:46 PM
  3. gravity movement question
    By zordork in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 6th June 2012, 08:19 PM
  4. gravity object
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th April 2011, 01:35 AM
  5. Advanced Game Board Object:: Problem with gravity
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th November 2008, 04:50 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
  •