We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb96554 commit 2a8e036Copy full SHA for 2a8e036
src/badguy/darttrap.cpp
@@ -160,12 +160,12 @@ DartTrap::on_flip(float height)
160
if (m_dir == Direction::UP)
161
{
162
m_dir = Direction::DOWN;
163
- set_sprite_action(m_state == IDLE ? "idle-down" : "loading-down");
+ set_action(m_state == IDLE ? "idle" : "loading", m_dir, 1);
164
}
165
else if (m_dir == Direction::DOWN)
166
167
m_dir = Direction::UP;
168
- set_sprite_action(m_state == IDLE ? "idle-up" : "loading-up");
169
170
else
171
FlipLevelTransformer::transform_flip(m_flip);
0 commit comments