Issue with Updating Player Input

So, for this course section, since I know a lot more about programming than I originally did, decided to challenge myself. By that, I mean creating struct Objects for both the axe and circle that hold values. However, the issue I am having now after such doing a massive refactoring is that now the circle movement doesn’t move like it once did. Instead, it seems to disappear. What’s also weirder is that the axe falling down doesn’t give any issue. I have the app target FPS set at 60 and yet I am still getting a weird issue about it.
Below is the refactored code
image


And here is the result when pressing D
IssueWithInput

Everything seems to be working right with the axe falling down and up and yet not for player input. I thought about doing references but if that was to fix it, then the axe would also be having the issue. I am at a lost at the moment, but I could be glossing over something that another pair of eyes could probably spot. Or maybe it is how Raylib handles input. I am unsure but I am open to any and all help!

Without knowing the rest of the code, it looks like your speed might be too high.

1 Like

It could be that actually. Maybe with how the math is being done on my end, its making the player ball go faster. I’ll see if adjusting speed could be the reason why (whenever I get the chance to adjust the code). Thank you for replying and I will let you know if that was the case! :smiley:

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms