Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Deleted 1 year ago

Hey, I just copied the code for it (js), note that the frames start at 0. These are the animations: see frames array. Hope that helpes, if you need more, just tell me :)

  this.anims.create({
            key: 'playerDash',
            frames: [
                { key: 'player', frame: 3 }
            ],
            frameRate: 1,
            repeat: 1
        });

        this.anims.create({
            key: 'playerItem',
            frames: [
                { key: 'player', frame: 10 }
            ],
            frameRate: 1,
            repeat: 1
        });

        this.anims.create({
            key: 'playerSleep',
            frames: [
                { key: 'player', frame: 32 },
                { key: 'player', frame: 33 },
                { key: 'player', frame: 34 },
                { key: 'player', frame: 35 }
            ],
            frameRate: 4,
            repeat: -1
        });

        this.anims.create({
            key: 'playerAttacking',
            frames: [
                { key: 'player', frame: 40 }
            ],
            frameRate: 1,
            repeat: -1
        });

        this.anims.create({
            key: 'playerFishing',
            frames: [
                { key: 'player', frame: 28 },
                { key: 'player', frame: 29 }
            ],
            frameRate: 4,
            repeat: -1
        });

        this.anims.create({
            key: 'playerFishingPull',
            frames: [
                { key: 'player', frame: 30 }
            ],
            frameRate: 1,
            repeat: -1
        });

        this.anims.create({
            key: 'playerHurt',
            frames: [
                { key: 'player', frame: 41 }
            ],
            frameRate: 1,
            repeat: -1
        });

        this.anims.create({
            key: 'playerGamepad',
            frames: [
                { key: 'player', frame: 20 },
                { key: 'player', frame: 21 },
                { key: 'player', frame: 20 },
                { key: 'player', frame: 22 },
                { key: 'player', frame: 23 },
                { key: 'player', frame: 22 }
            ],
            frameRate: 6,
            repeat: -1
        });

        this.anims.create({
            key: 'playerDig',
            frames: [
                { key: 'player', frame: 16 },
                { key: 'player', frame: 17 },
                { key: 'player', frame: 17 },
                { key: 'player', frame: 17 },
                { key: 'player', frame: 18 },
                { key: 'player', frame: 19 }
            ],
            frameRate: 12,
            repeat: 0
        });
        this.anims.create({
            key: 'playerRun',
            frames: [
                { key: 'player', frame: 4 },
                { key: 'player', frame: 4 },
                { key: 'player', frame: 7 },
                { key: 'player', frame: 6 },
                { key: 'player', frame: 5 },
                { key: 'player', frame: 5 },
                { key: 'player', frame: 6 },
                { key: 'player', frame: 7 }
            ],
            frameRate: 18,
            repeat: 1
        });
        this.anims.create({
            key: 'playerStand',
            frames: [
                { key: 'player', frame: 0 },
                { key: 'player', frame: 1 },
                { key: 'player', frame: 2 },
                { key: 'player', frame: 1 }
            ],
            frameRate: 5,
            repeat: 1
        });

        this.anims.create({
            key: 'playerSwim',
            frames: [
                { key: 'player', frame: 12 },
                { key: 'player', frame: 13 },
                { key: 'player', frame: 14 },
                { key: 'player', frame: 13 }
            ],
            frameRate: 6,
            repeat: -1
        });

        this.anims.create({
            key: 'playerJump',
            frames: [
                { key: 'player', frame: 4 }
            ],
            frameRate: 1,
            repeat: 1
        });

        this.anims.create({
            key: 'playerFall',
            frames: [
                { key: 'player', frame: 11 }
            ],
            frameRate: 1,
            repeat: 1
        });

Deleted 1 year ago

hey,

this is exactly what the code explains. there is no image for this. you can lookup the name: “idle”, “running” and the frames and got exactly what you need. this should work with every modern game engine.