What’s inside this box? A lot of puzzles! Can you solve all 30?4.06 / 5.00 9,376 Views
Use the mouse to navigate menus and to queue and cancel robot actions.3.70 / 5.00 3,084 Views
Made for the Adventure Jam 2016!3.74 / 5.00 3,133 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.