OK, so I lost almost four hours today because of a crazy occurrence.
I was in the process of adding in item boxes and running my scene quick to test to make sure it would instance the item properly, and my player couldn't jump!
After tons of digging, I determined that the problem was caused by the fact that gravity was being instantly applied to the player, instead of over time.
I have no idea how this happened, but somehow my update_gravity() function (which I pass the delta variable into) not only lost the delta parameter, but also somehow removed multiplication by delta from these lines:
gravity = (GravityPull * GravityMultiplier)
velocity.y += gravity * delta
...so that it read:
velocity.y += gravity
I am not sure how that happened, as that is code I wrote all the way back in January, sooo.... anybody ever see anything like that happen before? :tongue:
ANYWAY!
Now that's out of the way, I did manage to add in item boxes, though currently the only item added is the Speed Boost, which expires after 30 seconds. Here's a video, which also shows off some other stuff!
I am realizing that my project is quickly spaghettifying, so I need to tidy it up before I go too much further. Wish me luck!