Orros Moving Obstacles Game#2
With this game it is like the previous activity but added with more things such as the objects are moving now this time and act as obstacles that prevent the ball from going to the other side. The two boxes would go back and forth while the there is an object that would rotate.
Like the first activity there is a ball that you will be able to move. The ball has RigidBody 2D, gravity scale set to 0 as again it won't fall when you are moving it. Then, adding a script which is the code that gives the ball its movement and you can add speed by clicking the drop arrow which reveals the speed so that its movement can go faster or slower. For the two boxes, I used Transform Position and Transform Rotation. When the codes are written, those will appear so that can edit and set the location from x axis and y axis. For the rotating object, it was a separate script that gives its ability to rotate and you can set up the speed of it.


Comments
Post a Comment