Yes. You would basically have an onTick() event and check for the int power-up state of player.powerup. For example, to check if the player has a fire flower:
Code: Select all
function onTick()
if player.powerup == 3 then
--do whatever you want when the player collects a fire flower
end
end
There's no shortcut yet to clear a power-up state, however you could for fire flower transform the player fireball into Bowser's fireball, or add Bowser's fireball GFX to the player fireball and just constantly set its y-speed to 0 or some number just smaller than that if gravity is affecting it. For the Tanooki there would be some way you'd need to come up with to neutralize the current effects