class Disappear : public StaticPlatform{ if (player collides with platform) { color = red; if (player stands on platform for 3 seconds) { Destroy.Disappear; } }