Ask coding questions

← Back to all posts
JackTon (8)

I'm currently trying to replicate the gameplay of Helltaker, and I've noticed that the only thing the methods responsible for changing the coordinates of an object in movingObjects.h are only called for in a separate method called InputArea. Should I just move all of those methods into inputArea, move them into movingObject's parent class, or something else?

SixBeeps (5629)

Keep them there just in case you need them in a separate script later. Once you've finished the first iteration and go onto polishing, then you can move it. IMO better to keep things modular, especially if that's the way they already are.

JackTon (8)

Forgot to note that InputArea is in a separate file called inputArea.h. What you said applies with this too, right?