NSV - Bug?
Channel:
Subscribers:
6
Published on ● Video Link: https://www.youtube.com/watch?v=sY3joc12e6I
The setup, I changed the code in add quest script so that it would make a copy of the data structure instead of just moving it. This means that when we check whether or not the quest is already in the list, it will be added again because it's a copy.
So. I made a loop and added two quests a hundred times.
Now, in the the quest manager object, it loops through all the quests in the list, every step. This is what happens when it tries to run it's complex code two hundred times.
Possibly not a problem, because we're probably not going to have two hundred quests, nor will the player be able to have all of those active at once, but this is an issue with how for loops tend to work and I don't know how to optimize it.
Other Videos By Ji'aska Coding
2019-01-24 | Shooting Game - Bullet Effects Stacked |
2019-01-24 | Shooting Game - Bullet Scaling |
2019-01-15 | Shooting Game - Basic Burn Effect |
2019-01-15 | Shooting Game - Removed Rotation [I miss it...] |
2019-01-14 | Testing Cartoon Shader |
2019-01-12 | Shooting Game - Update |
2019-01-02 | New Project - Base |
2019-01-02 | New Project - Colour Blind Simulating Shaders |
2018-12-12 | NSV Progress - More Quest Functionality |
2018-12-03 | NSV Progress - More Quest Stuff |
2018-12-03 | NSV - Bug? |
2018-12-02 | NSV Progress - Quest Choice |
2018-12-02 | NSV Progress - Active Quest |
2018-11-30 | NSV Progress - Menu Update, Day & Night Shaders |
2018-11-29 | "Funny" Code Hiccup |
2018-11-24 | Side Project - Day and Night Cycle With Built In Lights |
2018-11-14 | Fallout NV - Breaking Old World Blues |
2018-11-06 | NSV Progress - Quest Update Prompts |
2018-11-05 | NSV Progress - Quest Log UI, WIP |
2018-11-01 | NSV Progress - Quests Update |
2018-10-15 | South Park FBW - Gender and Sexuality |