Retro Shooter with generated content4.00 / 5.00 206 Views
Blow the enemy to hell or die a hero! Do you have the Expendaballs for combat, Soldier?3.79 / 5.00 2,609 Views
It's time to escape the city!3.71 / 5.00 1,135 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.