Post 152
More Crashing
So today I wanted to work on the dodge roll cool-down. This started off with a pretty simple idea.
This code basically has a number set to 0, when a value is added to this number a statement becomes false. But the value is constantly being reduced back to 0 over time. Another feature is the number never goes past 0 and doesn't keep removing numbers. The reason I go into the trouble of this is so the game doesn't constantly have to count numbers in the background.
However the code above absolutely failed and had no effect what so ever. So now I have to come up with a way to make it work.
This is my planned solution, adding a new variable "dodgeready". This will allow me to tell the game when its a good time to dodge and a bad time to dodge. Basically it gives me a gateway into other code, so this code can effect things that aren't in the same page, and sometimes not even necessarily in the same object.
so after even more mucking around I manged to screw it up even more.
Now the game just crashes at the "END" of the dodge roll, so it has something to do with the end of the timer, so when the number is reduced to 0 or maybe something else.
Tomorrow I will attempt to fix this problem and have this working.
No comments:
Post a Comment