Added fix to other animations

This commit is contained in:
Lennart Hase 2020-03-27 23:49:53 +00:00
parent a10f053e32
commit ef4a5f28b5
20 changed files with 59 additions and 60 deletions

View file

@ -12,8 +12,8 @@ for (i = 0; i < 41; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 41]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 76; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 76]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 24; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 3) % 24]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 30; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 30]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 61; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 61]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,9 +12,8 @@ for (i = 0; i < 164; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
fun refresh_callback ()
@ -22,5 +21,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 164]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 68; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 68]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 101; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 101]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 48; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 48]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 72; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 72]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 156; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 156]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 96; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 96]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 375; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 375]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 89; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 89]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 120; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 120]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 120; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 120]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 210; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 210]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 81; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / 2) % 81]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);

View file

@ -12,8 +12,8 @@ for (i = 0; i < 62; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;

View file

@ -12,8 +12,8 @@ for (i = 0; i < NUM; i++)
flyingman_sprite = Sprite();
# set image position
flyingman_sprite.SetX(Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2); # Place images in the center
flyingman_sprite.SetY(Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2);
flyingman_sprite.SetX(Window.GetX() + (Window.GetWidth() / 2 - flyingman_image[0].GetWidth() / 2)); # Place images in the center
flyingman_sprite.SetY(Window.GetY() + (Window.GetHeight() / 2 - flyingman_image[0].GetHeight() / 2));
progress = 0;
@ -22,5 +22,5 @@ fun refresh_callback ()
flyingman_sprite.SetImage(flyingman_image[Math.Int(progress / SPEED) % NUM]);
progress++;
}
Plymouth.SetRefreshFunction (refresh_callback);