Trigger for platforms and enemies