Building a rhythm game with a point system. The way I did it is collision based so if the up arrow is colliding with a high up bar and you press up then it will only give you 1 point vs if the bar is perfect height then you get 4 points. After that the up arrow sprite is deleted. However I found that even after the arrow sprite is deleted for some reason you can still get some points for a short ammount of time by continuously pressing the up button. Not sure why this is happening and if someone could help me find a solution I would be greatful! Using windows on sdk!
for k=1,1 do if collisionbar:alphaCollision(upArrowSprite[k]) == true and playdate.buttonJustPressed( playdate.kButtonUp ) then upArrowSprite[k]:remove() score += 1 end end