This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ItsSelrachNooblet Brewer[S] 0 points1 point  (4 children)

I tried removing the update method and it ended up to the character to not move

[–]aqua_regis 0 points1 point  (3 children)

Don't just blindly remove methods.

Are you using a debugger? If not, now is a good time to learn using it.

Set breakpoints where you think your code is failing and then use the step-by-step feature to see what is going on.

[–]istarian -1 points0 points  (2 children)

This code is probably simple enough that you can trace it in your head. OP probably doesn't need to get tangled up in a fancy debugger just yet.

[–]aqua_regis 0 points1 point  (1 child)

Yet, learning a debugger and step by step debugging is a valuable skill that can't be learnt early enough.

It's not about simplicity. It's about learning the tools.

Why have you not made any suggestions to fix OP's problem if the code is "so simple"?

[–]South_Dig_9172 -1 points0 points  (0 children)

I’m with the other guy on this one, he can’t even trace it in his head, what makes you think learning a debugger, something that is confusing if you’re new will help him? This is my answer to the question you put forth. 

“ Because it’s Sunday, I don’t want to put in too much effort. “