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

    • CommentAuthorMSFX
    • CommentTimeNov 15th 2008 edited
     
    Ive only just started using Flint, playing around with the examples, really nice work :)

    (Saw your presentation at FOTB08, was impressive)

    Have a question regarding the Explosion example...

    I have altered the code to explode my cat =D and have been trying to position the rendered image before it explodes in the top left corner using...

    var particles:Array = Particle2DUtils.createRectangleParticlesFromBitmapData(catBMPData, 10, emitter.particleFactory, 0, 0);

    However this places the image as 10, 10 rather than 0, 0. I have to set it to -10, -10 in order for it to be aligned with the top left corner...

    My question is why does it not go to 0, 0? Is this to do with the position of the renderer or something else or is this just how it works...?

    I tried repositioning the renderer but this wouldnt work either, any help/explanation would be much appreciated :)

    Cheers

    Matt / MSFX
    • CommentAuthorRichard
    • CommentTimeNov 17th 2008
     
    There was a bug in the code - it's now fixed in SVN and will be in the next release.