CSD 20-21 Unit 3 Lesson 20

In the example Frog and Mushroom game in Lesson 20, Line 31 says frog.velocityX = 0. I don’t see why that line of code is needed.

Thanks so much for any insight on this.

I’m with you on that one. Not sure it is needed, but it isn’t hurting anything either (other than adding unnecessary code). I first thought it should be velocityY, but that causes other issues, so I think removing it would be fine.

Mike