I won't have net access for a few days so no hurry.
thanks
Printable View
I won't have net access for a few days so no hurry.
thanks
Please do. I won't be near MMF all weekend, so I can't help arfa...Quote:
Originally Posted by HolyMonkey
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.
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
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.
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.
In case you didn't spot this on rounding decimals...
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=214817&#Post214 817
thanks much arfa.
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
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?