Potions, Platforms, and Enemies
So after a couple of weeks we have added platforms. One that falls after you stand on it for a bit and one that moves from one point to another. We also added some items which are potions that you can use and drop. We also made the keys we had already turn different colors. Then finally we added enemies that spawn in and can be defeated.
Now let me try to explain how it all works.
For the key changing I don't know how all of it works but i know that it only looks for the cylinder part of the key and it randomly selects a color from an array and changes it to that one.
For both of the potions they work the same way. They both have three functions, picking up, dropping, and a primary action. For picking it if the player runs in to it then it will put the model in the right hand of the character. For the dropping there is a key press function in the character code and when that key, in this case being Q is pressed it detaches from the hand a goes flying off in to the void. Then for the primary function similar to dropping when left mouse if pressed it shows some text that says +10 health or mana then it destroys it's self afterwards.
For the enemy it's self there's a simple model to it and when the player runs into it there are some simulated physics to it that lets it be pushed over, then there is a 2 second delay, then after that delay it will remove it self. Then there is also a system for a spawner for the enemies, the first thing it does is display some text to say that the system is working then it gets the positions of the spawners and then it spawns the enemies at those locations. Then the other part is when there are no enemies left, it checks to see how many enemies are left then when the enemy count is 0 it shows text that says "Next Wave Spawning" and there's a 5 second delay and after that it respawns all the enemies.
Then for the moving platform I don't know how that works.
For the falling platform, It checks to see when the player stands on it and then it becomes active. After it becomes active it shows text that says "One second left" then it changes it color to the active color and then delays for a second and then it drops. When it drops it says that it's dropping then some simulated physics is applied to the model and then it changes colors again to the dropping color and after it drops there's a 3 second delay and then it resets its self. It then says it restarting and then after that I can't really explain it.
Files
Get Coding 1- Summer 24
Coding 1- Summer 24
An Unreal Project Showcasing the lessons I learned in my Coding 1 class at Wichita State
Status | In development |
Author | The 678 |
More posts
- Last post of the semester with UI and Checkpoints.Jul 25, 2024
- Doors and KeysJul 05, 2024
Leave a comment
Log in with itch.io to leave a comment.