@niiraju is correct. You want 2 classes. One for the boy and one for the rock. Each noun, a boy and a rock in this case, will have different actions Java - how to make an image represent which tile to draw in a game?. Thanks to shadowspear1 and his game "The impossible game " for showing me how to make the obstacles spawn and move, and to starwest1. how to make an endless runner on Scratch by infinnator-tutor. The character is gonna run and jump over oncoming rocks. Chances are high that you have played an infinite 3D runner game at least once in the past years, when this genre became known and successful. Sign up or log in to solitere your list. Your account has been reactivated. Love this project Onto our game code and Unity scene construction!