Above is the interface and blocks for my switch game. I used a button and when that button is presses the dinosour jumps to avoid the rock that is moving across the screen
Use this link to access the game:Â
https://ai2a.appinventor.mit.edu/#13565680