Dragonfly Q&A

How do I link my custom-made sprite to my new Object?

0 like 0 dislike
I've been trying for the last few hours to use the same methods as I've done for saucer, and I've had no luck. The .txt file is identical to saucer (apart from the file name), so there isn't issues with the formatting of the file. The objects behave as normal in the game, but they're just not visible. I've looked through the engine documentation but I can't help to think it's a simple mistake. Any ideas?
asked Aug 31, 2016 by jcscheide

1 Answer

0 like 0 dislike
<p>An invisible sprite suggests there is an error in the sprite file.  After you run the game, open up "dragonfly.log" and look at the top.  When the Resource Manager finds a "bug" in the sprite file, it will tell you where (line number) it does.  I suspect you have a bug in the new file you added.</p>

<p>Other than that, make sure you've actually loaded the resource (in game.cpp, <code>populate_world()</code>) and that the new sprite has a different text name that is used in the Object constructor.</p>
answered Aug 31, 2016 by claypool
More information about Dragonfly can be found on the Dragonfly Home Page.
...