How exactly do spritesheets work?

I'm having some thouble time with spritesheets and the main problem is that I can't understand what is the exact principle of choosing between different sprites within one spritesheet.


Spoiler: Case 1
There is a blank dragon event on the map:
1650100989206.png
1650101006907.png


It's moving with the following route, basically falling and then jumping a bit:

1650101045487.png


And this is the end results of such movement. I don't want my dragon to change sprite at all. But somehow his sprite shifts two positions in the spritesheet.

1650101062968.png


Spoiler: Case 2
This is one of my enemy event that randomly walk and chase the player if it sees him. (works with YEP chase player plugin)

The first page, battle processing and switching A selfswitch if wins:
1650101264474.png


Second page, enemy should just lie on the ground if switch was activated. And it should have the same sprite, but the "down" version.

1650101276417.png


The third page is the "resurrection" mechanic. Since it is activated by a special switch, it does not matter, but I put it here just in case.

1650101294494.png


4th page consist of blank sprite and also activates with special switch. It means full disappearance of the enemy.

So, you saw it, it's very simple, you battle with the enemy and if you win, the enemy should just switch to second page and take the "down pose", right?

Right???

1650101218600.png


1650102566241.png
1650102408470.png

additionally, some sprites are incomplete (only one direction) and are combined to single sheets to reduce size, but they cannot turn and need direction fix
I think also you need to change page 3 of the resurrection event
where "trigger SelfSwitch A" is also ON, otherwise it can be triggerd
if the enemy/ally is alive 🙂

additionally, some sprites are incomplete (only one direction) and are combined to single sheets to reduce size, but they cannot turn and need direction fix

Now I get it. So this "down" spritesheet is designed for those cases where the event does not move. And since the enemy is moving here, the game assigns him sprites according to the cell it has automatically determined. And for this case I have to fill this full cell with the same sprites.

Okay, thank you.

I think also you need to change page 3 of the resurrection event
where "trigger SelfSwitch A" is also ON, otherwise it can be triggerd
if the enemy/ally is alive 🙂
Oh, you're right, thanks! 😉
So this "down" spritesheet is designed for those cases where the event does not move.
No, the case is where the event does not turn.

Each row of the spritesheet represents one facing direction: down, left, right, up. Like Andar mentioned, for this type of sprite you should generally enable the Direction Fix option (bottom-left of an event page) to prevent the event from turning to face the direction that it moves.
I'm having some thouble time with spritesheets and the main problem is that I can't understand what is the exact principle of choosing between different sprites within one spritesheet.


Spoiler: Case 1
There is a blank dragon event on the map:
View attachment 223355View attachment 223356

It's moving with the following route, basically falling and then jumping a bit:

View attachment 223357

And this is the end results of such movement. I don't want my dragon to change sprite at all. But somehow his sprite shifts two positions in the spritesheet.

View attachment 223358


Spoiler: Case 2
This is one of my enemy event that randomly walk and chase the player if it sees him. (works with YEP chase player plugin)

The first page, battle processing and switching A selfswitch if wins:
View attachment 223360

Second page, enemy should just lie on the ground if switch was activated. And it should have the same sprite, but the "down" version.

View attachment 223361

The third page is the "resurrection" mechanic. Since it is activated by a special switch, it does not matter, but I put it here just in case.

View attachment 223362

4th page consist of blank sprite and also activates with special switch. It means full disappearance of the enemy.

So, you saw it, it's very simple, you battle with the enemy and if you win, the enemy should just switch to second page and take the "down pose", right?

Right???

View attachment 223359

View attachment 223364View attachment 223363
.

Original thread: https://forums.rpgmakerweb.com/threads/how-exactly-do-spritesheets-work.146808/