You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers. No questions about C++ programming or topics which are answered in the tutorials!
if (event.KeyInput.PressedDown)
getMainCharacter()->Move();
else
getMainCharacter()->Stop();
The main character should move when you stay on the key and stop when you release the key but it doesn't work and as there are no "isKeyPressed" function or something like that, I don't know how to do
Your method uses event.KeyInput.PressedDown just like mine
It still doesn't work as event.KeyInput.PressedDown seems to be always true (so I can't detect if the user stopped pressing a key)
if (event.KeyInput.PressedDown)
{
if(event.KeyInput.Key==KEY_UP)
getMainCharacter()->Move();
}
else
getMainCharacter()->Stop();
I would suggest you do what metalseb said though, is better for movement. Although, the animation might keep repeating the first frame over and over. I think that was a problem I came across.