大家好,你们是怎么做动画的?
easyx吧
全部回复
仅看楼主
level 7
白芦花
楼主
螺母分类,螺母配色,动画过程
while (y<y1)
{
//动画帧
putimage(x, y, &im);
FlushBatchDraw();
y++;
}
2024年11月22日 06点11分
1
level 7
白芦花
楼主
速度好慢
2024年11月24日 22点11分
2
level 7
内个小谁
弄一个计时器Timer,在主循环里使用每帧的间接时间deltaTime,动画的执行速度乘这个时间
2024年11月26日 11点11分
3
白芦花
加了时间相关,快多了;;; y += deltaTime*比率
2024年11月27日 01点11分
level 7
白芦花
楼主
int dt = (int)(Time::GetInstance().deltaTime()*1000.0);
if (dt<1 || dt>10)
y++;
else
y += dt;
2024年11月27日 01点11分
4
1