trace(world.classCount(BlueBlock)); // output: 2
var block:BlueBlock = world.classFirst(BlueBlock); // Gives implicit coercion error
Error: Implicit coercion of a value with static type net.flashpunk:Entity to a possibly unrelated type blocks:BlueBlock.
BlueBlock
is a subclass of Entity
so I don’t understand why I’m getting the error.
Could someone please help?