Fork me on GitHub
Not signed in (Sign In)
    • CommentAuthorniwars
    • CommentTimeNov 18th 2012

    It's my first time to use Flint, thanks for this great libraries.
    Anyway I have this code:

    emitter.addInitializer( new SharedImage( new Star ( 5 ) ) );

    But I have an error that says "Incorrect number of arguments. Expected 0."

    So I removed the "5" inside the parenthesis and it runs fine. But how am I gonna set the radius of the Star? I want to set the radius of the star so If anyone can help me?

    • CommentAuthorRichard
    • CommentTimeJan 20th 2013
    Are you sure you're using the Star asset provided in Flint. Flint's Star asset requires one argument (at least), but if, for example, you have an asset in your library that you exported with the class name Star that would give this error.