Need Help with Code Not Working Exactly like A Working Example

Could I please have help on my other threads then, about the mouse input, the enemy AI in the pacman game, and the collision not working properly in the other platformer? No one has given the correct solution on those threads yet.