Help with Game Lab Project (shapecolor block)

I am trying to remix the project linked above so that instead of rectangles, the Messi and Ronaldo sprites I added play the soccer game. However, when I delete the shapecolor block and replace it with the set animation block, the “kick” which responds to the space bar no longer works :frowning:

Any ideas what I could be missing? Thank you!!

Hi @cynthia.moss!

Fun game! I was able to replace the block with Messi. I think the problem is that the if statement that asks if the ball is touching the block (Ronaldo) is always true so when you hit the space key, it might be true for a very short instant but the ball is also still touching Ronaldo so it remains with him. If you add a line of code to your nested if statement that moves the ball away from the Ronaldo first (so it is no longer touching him) then the remaining code should work (the velocityX and velocityY. I added about 70 pixels to ball.x.

Hope that helps!
~Michelle