Hey! I am trying to create a button on the floor, so when a player walks on it, a counter attached to the camera increases by 1. However, when the player walks on the button and the counter increases, and the player walks on the button again, the counter shouldn’t increase. Does anyone know how to do this?
you can use this coblock
Think to share a remixable space of your code in order to understand better your issue.
I hope this helps.
You dont need a loop for this.
You can use a collision event, and inside that, after increasing the counter, you can use the block “remove event from item” to remove the event, so that it can only happen once.
2 Likes