A Confused Code- Project 4
- gsantoro2
- Sep 28, 2021
- 1 min read

So the code for this project was intended to display a little stickman guy. Upon pressing one of the new buttons it is supposed to make the guy jump and play a sound. Pressing the other button would make the guy duck and play a different sound. The issue is for some reason it does not work, but the original stickman does appear. A different light is also supposed to turn on depending on the button pressed.
Updates
I managed to fix the code so that it works, however

it does not like to work unless the buttons get held
down. Also, there is a delay between the button and
the movement.
תגובות