Browse Source

slowed down animation play speed

master
Victor Giers 5 years ago
parent
commit
62448848e5
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marker.pde

+ 2
- 2
Marker.pde View File

@@ -116,7 +116,7 @@ class Marker {

void display() {
if (!dead) {
frameIdle = (frameIdle+2) % idleImageCount;
frameIdle = (frameIdle+1) % idleImageCount;
if (waitForPlay) {
if (frameIdle >= idleImageCount - 1) {
waitForPlay = false;
@@ -124,7 +124,7 @@ class Marker {
}
}
if (playAction) {
frameAction = (frameAction+2) % actionImageCount;
frameAction = (frameAction+1) % actionImageCount;
renderer.image(actionImages[frameAction], canvasPosX, canvasPosY, canvasImgW, canvasImgH);
if (frameAction >= actionImageCount - 3) {
playAction = false;

Loading…
Cancel
Save