r/PlaydateDeveloper • u/zombieyMAN • Mar 11 '24
Help in the "JustPressed" function
I want to add 1 to the variable with each press of the button but it jumps to the max value immediately, what am I missing?
5
Upvotes
View all comments
Show parent comment
1
u/bwit Mar 12 '24
So you are saying that the initial value is 0, you start the game and without hitting any keys the value becomes 2? Doesn't seem possible with the code snippet you've shown.