Shooting gallery
I decided to add a shooting gallery to enhance my project.
In the gallery, I want to have a random number of chairs spawn randomly in a certain area. I have been able to do this using the code in the image attached.
To make the enemy move back and forward, I got the world location per event tick and set the relative world location plus a speed variable as per the image attached. I changed the speed -/+ when it hit the designated boundary.
This makes the movement very blocky and not smooth at all but the logic works. Therefore I planned on using a timeline in conjunction with this logic. However, I decided to use the event tick node to move the chair in a more natural motion. I am happy how this turned out as it allows me more flexibility to use this code in other blueprints. This presents an opportunity to make my project more efficient when it comes to writing the code.
I also programmed the chairs to react to the projectile by destroying themselves on actor begin overlap. This gives the shooting range a goal. I will be making a small scoring system to back this system up.
Reflecting on this part of the project, I am happy with how I have integrated this feature as it has given me an opportunity to learn to code modular, transferrable blueprints. The way that I have spawned the chairs also provides the level with an element of randomness to it, making every time it's played different. If I were to do this again, I would want to find a way to make the chairs move in an irregular pattern to make the gallery more difficult. Doing this would require me to learn more advanced code.
First VR project- Ben Jeffreys
More posts
- End productMay 03, 2023
- Menu systemApr 27, 2023
- Engine changeApr 25, 2023
- Door rotationApr 14, 2023
- Door buttonApr 14, 2023
- Smooth locomotion pt1Feb 17, 2023
- Task assignmentNov 10, 2022
- ConceptOct 30, 2022
Leave a comment
Log in with itch.io to leave a comment.