I know it is only 2 levels with danger and is easy but it is my first platformer and if I get 5 likes I will make a part 2 that will be harder and have more dangers and levels.
Thanks to A_True_Yemeni for helping me on the code