My guy > collides with button > set button.variable to "active"
button.variable = "active" and button.Y is greater than the ground > button.Y = button.Y - 0.2
button.y = ground.Y > set button.variable to "done"
button.variable = "done" > Do something
That's probably how I'd do it
~Sol