LECTURE:
During this week's lecture, we learnt how to make different obstacles, other than the generic boxes. We learnt how to make lasers, rockets and trails for our character and rocket. To make a laser grid or obstacle, we can use something called a Line Renderer component. What this does is it takes two points and creates a line. This can be done for a laser or for a rope. To turn this line into a LINE OF DEATH, we can either use a trigger or a OnCollisionEnter function to kill the player if they were to touch or collide into this line. A trail renderer is what the name entails, it renders a trail behind the desired game object. This is really useful if you want to use it if you were shooting a laser, throwing a grenade to see the trail of smoke it leaves behind and many other things. The picture below will present how a line renderer component looks like:
This part of the line rednerer component, but I find this part to be the one of interest for my project. The component asks us for the size, material and time of the trail. For the material, you can either change the color, add a texture or do both, add a texture and change the color of the texture. The graph below shows the dissipation of the trail. The higher the keypoint (the diamond shape points on the line), the thicker the line. So on this graph, I have made the trail so that after a certain amount of time, the trail will get smaller.
MILESTONES & ACHIEVEMENTS:
As always, this week's achievement was learning something new and making the project or any future projects better and appealing to the eye, or what one would call it, "juicy". I plan on putting in something extra for the obstacles, other than the generic box and coins to make the obstacles more immersive, and in doing so, I would need to make an array of game objects for the "spawner" to spawn these objects.
During this week's lecture, we learnt how to make different obstacles, other than the generic boxes. We learnt how to make lasers, rockets and trails for our character and rocket. To make a laser grid or obstacle, we can use something called a Line Renderer component. What this does is it takes two points and creates a line. This can be done for a laser or for a rope. To turn this line into a LINE OF DEATH, we can either use a trigger or a OnCollisionEnter function to kill the player if they were to touch or collide into this line. A trail renderer is what the name entails, it renders a trail behind the desired game object. This is really useful if you want to use it if you were shooting a laser, throwing a grenade to see the trail of smoke it leaves behind and many other things. The picture below will present how a line renderer component looks like:
This part of the line rednerer component, but I find this part to be the one of interest for my project. The component asks us for the size, material and time of the trail. For the material, you can either change the color, add a texture or do both, add a texture and change the color of the texture. The graph below shows the dissipation of the trail. The higher the keypoint (the diamond shape points on the line), the thicker the line. So on this graph, I have made the trail so that after a certain amount of time, the trail will get smaller.
MILESTONES & ACHIEVEMENTS:
As always, this week's achievement was learning something new and making the project or any future projects better and appealing to the eye, or what one would call it, "juicy". I plan on putting in something extra for the obstacles, other than the generic box and coins to make the obstacles more immersive, and in doing so, I would need to make an array of game objects for the "spawner" to spawn these objects.
No comments:
Post a Comment