User Tag List

Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 33

Thread: need help with rotation x,y math

  1. #21
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    I won't have net access for a few days so no hurry.

    thanks

  2. #22
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    Quote Originally Posted by HolyMonkey
    I will as soon as I get the time to make one...which might not be until some time this weekend...
    Please do. I won't be near MMF all weekend, so I can't help arfa...

  3. #23
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    Hi all.

    Here's the best I can come up with with my limited free time:

    Example MFA

    I'm assuming due to a rounding thing, they slowly move toward the center active. This rounding issue doesnt bother me for my needs(not a game, and not for a continuous orbit, just for a one shot calculation)... If I needed to maintain this "orbit" in a game I would just kave stored the original x,y offests in each "petal" and reset the new x,y to those numbers aver avery complet revolution...as in, once each petal is back to its starting angle.


  4. #24
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    Actually, I now have a need to correct this rounding issue but can't use the method I was thinking of... Can one of you mathy guys help me fix the issue where they gravitate toward the center sprite?

    thanks

  5. #25
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    If you store the object's initial coordinates and always rotate from those it will work.

    Alternatively if you always work with alterable values instead of retrieving the position, you'll get more precision and it should stop the rounding errors being noticable.

  6. #26
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    thanks HM.

    I just got back and will study the set up later.

    While I was away I tweaked my earlier example to add objects in a circle. Maybe you need unique objects. I think this would still work for that. It would be easy enough to set my center with 'bouncing ball' or you could do a 'random direction math thing'.

    http://www.buddhamind.info/mmf/AK_arc_test-3a.mfa

    Have a play with the various player-input keys.
    There are a few things still in the back of my mind to add to this but no time just now.

    I too had problems with the rounding thing. [line 16 - set angle for MUM] It meant that with a lot of obj. - 25+ there was a gap in the ring. I will start a thread and see if there is a (better way than mine) for that.

  7. #27
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    In case you didn't spot this on rounding decimals...

    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=214817&#Post214 817

  8. #28
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    thanks much arfa.

  9. #29
    No Products Registered

    Join Date
    Aug 2010
    Posts
    343
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    HolyMonkey,
    I still haven't made time to study your example. I have been working on the widget version of my approach.

    Here is a version of your scenario with the math I have been using. This is a fixed value setup and you can compare it to my earlier example with full variables. I have to say that it looks *way* easier than your example and this inclines me to continue with this math approach.

    I hope this helps.

    http://www.buddhamind.info/mmf/AK_4obj-Rotate.mfa

  10. #30
    No Products Registered

    Join Date
    Aug 2008
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: need help with rotation x,y math

    arfa, I have been looking into this as well. Your example works well, but it looks a little less smooth. Is there a way to make it look a little less jerky?

Page 3 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. math!
    By Sevennemesis in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd August 2012, 06:18 PM
  2. MMF math
    By arfa in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 16th November 2010, 05:04 PM
  3. Math in an RPG
    By Hordolur in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th February 2009, 08:15 PM
  4. Math Help Please!
    By kungsangun in forum File Archive
    Replies: 4
    Last Post: 2nd April 2008, 03:16 AM
  5. Need math help
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 20th January 2008, 06:45 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
  •