Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthorman2
    • CommentTimeMay 21st 2009 edited
     
    How do I make circular movement in Flint?
    I tried the Rotate action, but that rotates the emitter or the particle. Is there a way to make the particle moves in circular direction without rotating the BitmapRender?

    Thanks..
    • CommentAuthorRichard
    • CommentTimeMay 27th 2009
     
    Most of the actions in Flint are designed around emulating physical systems like gravity. The only tweening action is the TweenPosition action, which does a straight-line tween. To create a circular tween you'll need to write a custom action. Custom actions are quite simple to write - you can use any of the existing actions as a guide.
    • CommentAuthorNot Sure
    • CommentTimeJun 9th 2009
     
    Alternatively to tweening as Richard suggests, you could take a physics approach by recalling that circular motion occurs when acceleration is orthogonal to velocity. You would probably write an OrthogonalAccelerate action that did just that. Also note, by scaling the magnitude of that acceleration, you can achieve inwards and outwards spirals as well.