I started to work through the holy magic, which involves the player throwing a fireball at the level, causing an explosion. Using an already existing particle effect that was imported into the project, I used the FireBall prefab for the holy magic being thrown and a WildFire prefab for the explosion thereafter. Though I haven't figured out how to implement the fireball to be used as a weapon like the shotguns and crossbow, I got started by writing a script that would cause the fireball to be thrown using a Rigidbody, and would explode when landing. I also started on an explosion script for the explosion when the fireball, or holy magic touches the level. Although I know what is to happen with the holy magic, I am not quite sure of how to get it going, other than having a click cause the fireball to be thrown.
With the stone wall asset changed for surrounding the forest level, I found out it was possible to go through the wall when jumping, allowing the player to endlessly fall of the level. As such, I put big box colliders on each separate destroyed wall asset with a size of X = 12, Y = 2, and Z = 10.
I was finally able to throw the fireball on October 14, 2022, with some aid. I added a new private GameObject entitled newFire. To throw the fireball, the player would press down on the "F" key. The script Holy Magic which causes the fireball to be thrown is implemented on the First Person Camera of the Holt New prefab and it's possible to change the shooting force. Since I didn't add the "explosion", when throwing the fireball, when it makes its land, it just floats endlessly. In fact, while working on the fireball and saving, my Unity project crashed due to too many plastic SCM conflicts, forcing me to remove, then re-install the project. Afterwards, I was forced to re-implement the fireball (at least I was able to spare my Holy Magic script by moving it into my desktop). Currently working on the Vertical Slice, I coded the script to tag "Zombie" since only zombies appear in the forest level, but the script might change on that when I move onto the Feature Complete-Build. Unfortunately, as of now, I'm not getting any damage on the zombies with the holy magic.
Comentários