New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RoRBot] rotate left/right animation bug #887

Closed
Speciesx opened this Issue May 10, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@Speciesx
Contributor

Speciesx commented May 10, 2016

@ulteq ulteq added the bug label May 10, 2016

@ulteq

This comment has been minimized.

Show comment
Hide comment
@ulteq

ulteq May 11, 2016

Contributor

It seems to be an animation issue.

Relevant code section:

tmpJoy = RoR::Application::GetInputEngine()->getEventValue(EV_CHARACTER_RIGHT);
if (tmpJoy > 0.0f)
{
float scale = RoR::Application::GetInputEngine()->isKeyDown(OIS::KC_LMENU) ? 0.1f : 1.0f;
setRotation(characterRotation + dt * 2.0f * scale * Radian(tmpJoy));
if (!isswimming)
{
setAnimationMode("Turn", -dt);
idleanim = false;
}
}
tmpJoy = RoR::Application::GetInputEngine()->getEventValue(EV_CHARACTER_LEFT);
if (tmpJoy > 0.0f)
{
float scale = RoR::Application::GetInputEngine()->isKeyDown(OIS::KC_LMENU) ? 0.1f : 1.0f;
setRotation(characterRotation - dt * scale * 2.0f * Radian(tmpJoy));
if (!isswimming)
{
setAnimationMode("Turn", dt);
idleanim = false;
}
}

Contributor

ulteq commented May 11, 2016

It seems to be an animation issue.

Relevant code section:

tmpJoy = RoR::Application::GetInputEngine()->getEventValue(EV_CHARACTER_RIGHT);
if (tmpJoy > 0.0f)
{
float scale = RoR::Application::GetInputEngine()->isKeyDown(OIS::KC_LMENU) ? 0.1f : 1.0f;
setRotation(characterRotation + dt * 2.0f * scale * Radian(tmpJoy));
if (!isswimming)
{
setAnimationMode("Turn", -dt);
idleanim = false;
}
}
tmpJoy = RoR::Application::GetInputEngine()->getEventValue(EV_CHARACTER_LEFT);
if (tmpJoy > 0.0f)
{
float scale = RoR::Application::GetInputEngine()->isKeyDown(OIS::KC_LMENU) ? 0.1f : 1.0f;
setRotation(characterRotation - dt * scale * 2.0f * Radian(tmpJoy));
if (!isswimming)
{
setAnimationMode("Turn", dt);
idleanim = false;
}
}

@ulteq ulteq added the low-priority label May 11, 2016

@only-a-ptr

This comment has been minimized.

Show comment
Hide comment
@only-a-ptr

only-a-ptr Sep 20, 2016

Member

Resolved by @vido89's updated animations.

Member

only-a-ptr commented Sep 20, 2016

Resolved by @vido89's updated animations.

@only-a-ptr only-a-ptr closed this Sep 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment