Hey all!
I'm using YED sideview battler to add more than 3 frames of animation to my game, but I'm having a problem with sprite placement on the screen.
The first two frames of animation work as intended, but once frame number three comes up, the entire sprite shifts 256 pixels (the width of each frame) to the right, and another 256 for frame 4, and so on until the image is completely off the screen. It's like they're sliding on a banana peel; it would be funny if it weren't such an issue. However, the sprite will return to the correct position once the animation begins again.
Additional info:
I have tried to use 64 pixel frames instead of 256, and here's where it gets weird. Instead of shifting once it reaches frame 3, it stays in the same place as far as frame 5, and shifts on frame 6 by 64 pixels.
I know very, very little about javascript.
I have all the prerequisite plugins, being yanfly's core engine, the three battler animation packs, and yanfly's animated sideview enemies. Each functioned correctly without Sideview battler installed, so the problem is definitely with that.
Lastly, I have seen that at least one other dev has encountered the same problem in the past (albeit they had the sprite move right for every single frame) so this is not an isolated issue.
Any help at all with keeping my sprites from slipping on infinite banana peels would be much appreciated. Thanks for reading!
I'm using YED sideview battler to add more than 3 frames of animation to my game, but I'm having a problem with sprite placement on the screen.
The first two frames of animation work as intended, but once frame number three comes up, the entire sprite shifts 256 pixels (the width of each frame) to the right, and another 256 for frame 4, and so on until the image is completely off the screen. It's like they're sliding on a banana peel; it would be funny if it weren't such an issue. However, the sprite will return to the correct position once the animation begins again.
Additional info:
Code:
<Sideview Battler: $fishfolk>
<Sideview Battler Size: 256, 256>
<Sideview Battler Frames: 6>
<Sideview Battler Speed: 6>
<Sideview Battler Motion>
Name: Walk
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Wait
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Chant
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Guard
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Damage
Index: 5
Loop
Frames: 1
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Evade
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Thurst
Index: 1
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Swing
Index: 1
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Missle
Index: 1
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Skill
Index: 1
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Spell
Index: 1
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Item
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Escape
Index: 0
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Victory
Index: 4
Loop
Frames: 2
Speed: 10
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Dying
Index: 3
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Abnormal
Index: 3
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Sleep
Index: 3
Loop
Frames: 6
Speed: 7
</Sideview Battler Motion>
<Sideview Battler Motion>
Name: Dead
Index: 2
Frames: 4
Speed: 7
</Sideview Battler Motion>
I have tried to use 64 pixel frames instead of 256, and here's where it gets weird. Instead of shifting once it reaches frame 3, it stays in the same place as far as frame 5, and shifts on frame 6 by 64 pixels.
I know very, very little about javascript.
I have all the prerequisite plugins, being yanfly's core engine, the three battler animation packs, and yanfly's animated sideview enemies. Each functioned correctly without Sideview battler installed, so the problem is definitely with that.
Lastly, I have seen that at least one other dev has encountered the same problem in the past (albeit they had the sprite move right for every single frame) so this is not an isolated issue.
Any help at all with keeping my sprites from slipping on infinite banana peels would be much appreciated. Thanks for reading!