I'm not really sure what you mean, but something like: ```c++ class Animation { public: void pla
I'm not really sure what you mean, but something like:
Now whenever you need to animate a Character or an Obstacle, you can simply call the
play()
method. E.g. 11 Replies
I'm not too sure what you're asking, if this isn't what you want let me know and I can try to help you
Hmm yeah that’s the idea, however when I want to put the parameters of the animation variable it doesn’t work
And I saw you could use the Anim object as a pointer but I don’t know if it’s useful in my case
Huh? If you want to put parameters into the animation object you'd need to make a class constructor
Wait I’m gonna show you what I mean
here's a part of Animation (also every objects i'm talking about are isolated in separated files)

and in the Character, I have this

so I made an Animation variable: m_anim
however I can't put the parameters in the anim

hmm wait
the error is gone?
does it mean that it works? @earth's bird
because I got an errordoing that previously
but I think it's vscode going crazy, it's sometimes happening...
Well nothing I see is really wrong in your code
But show me the error when compiling
I didn't compiled yet, it was trusting the vscode error which now disapeared lmao