For this game we have to drag our spaceship to earth. Once we do that that ship will randomly respawn at one of the black holes. If you make it to earth than you get a point. The game is built on a simple drag and drop system that we have seen in previous articles. A drag script is on our spaceship and a drop script is on our earth.

--

--

In this game we need to click on the tiles that match the fruit on the left. When the player clicks on the right fruit, they get a point if they are wrong, they get nothing. In start we activate and populate the grid with an array of images.

--

--

Unity can be used for more than just fun videogames but also educational games for children. The games will not make anyone an Einstein but will help with matching skills and addition.

For this project I will be tasked with building 3 educational games over a 5-day period. The games will be simple so that children can play them. They will use a variety of Unity user interface elements.

One game will task the player with clicking on the tiles that match the right picture. A second game will involve dragging the spaceship to earth, and the last will be an addition game. All games will have a timer and award points to the player. In future articles I will go over the creation of how I made these games.

--

--

With this game we want to be able to drag and drop the bomb image into the slot, if we try to drag the other two images it will reject it and put the images back to their starting position.

We can reuse the drag script from the last article except we want to add a line where we disable the raycast target. This allows us to get info from underneath the image. After we stop dragging we can reenable it.

--

--

Here we want to learn how the player can drag various objects with a click of the mouse. In this case we want to move the images around. For this we just need a new script to attach to our images. First make sure that we have the relevant interfaces and namespaces.

--

--

Josh Watts

Hello I am an aspiring game developer learning to develop great games. Right now I am going through a program with GameDevHQ. My favorite game is Half-Life.