Question about movement and attacking logic

Hi there, i know this could be considered a really basic question but i’m at a crossroad right now and i cannot find a good tutorial on how or where should be programmed the core system of a character, (this is, combo system, jumping and grappling… etc).

I was convinced it should be done via the Character class but i discovered the CharacterMovementComponent and now i’m confused as what role does that component play in the life of the character… should i inherit from that class and do all the movement related stuff in there (comboing, etc). Or should i leave it alone and create a fight component and use that instead?

Then again, sorry for the basic level of the quesiton, I am an experienced programmer just not in this framework, and it’s becoming a little difficult to find good places to learn

I ran into the same question a while ago. I investigated a little more and found that coding a Character Component was much more involved than simply using the Character class. That lead me to stick with the Character class.

Then again, my character logic was pretty simple, so the extra overhead of the character component might not be a problem for you.

I’d recommend sticking with the simplest option you can that gets the job done. To that end, I’d suggest using the Character class. If you find a better answer I’d love to hear it though!