Why the second red block didnt get to the top again?

once again help pls😅 https://code.sololearn.com/W8HXrbOFOD1l/?ref=app

10/23/2018 5:44:10 AM

Ji⩎❡❡a ន០⩎a

4 Answers

New Answer


This comparison (line 60) if(aPosY == HEIGHT-20){ Is too specific (expecting a very accurate scenario) If you set it to if(aPosY >= HEIGHT-20){ it will work probably better to set it to if(aPosY >= HEIGHT){ also it seems that the score increment only occurs once (first time) probably another condition which is too specific


Nahh, not a genuis, just encountered the same issues at some point ;)


Oh Yesss!! Thanks Burey! You are a genius!👍👍👍


Okay! Thanks again Burey!👍