An epic, colorful and fast-paced arcade game3.62 / 5.00 7,070 Views
Make your way to the next level by creating constellations!3.56 / 5.00 2,081 Views
bullet hell with a unique absorb mechanic3.54 / 5.00 6,977 Views
I created a class called "bgitem" that extends the Sprite class and gives it a few extra variables. I've changed the base class of a handful of library items to Sprite and am trying to cast them as "bgitem"s.
Is there any way to convert them on the fly without creating an identical .as for every single library class?
public var building:bgitem = bgitem(new building1())
Instead of making the base class of building1 extend Sprite, make it extend bgitem. No need to cast. Give that a try.