Yanfly Action Sequence 1 pixel sprite shift fix?

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,458
Reaction score
1,595
First Language
English
Primarily Uses
RMMV
I have a simple move to enemy target to attack, then return to base location for my Attack skill.
Code:
<setup action>
display action
immortal: targets, true
</setup action>
<target action>
if user.attackMotion() !== 'missile'
motion evade: user
move user: targets, front, 15
else
perform start
end
zoom: 125%, 15
camera screen: target, front center, 15
camera focus: target, front center, 15
wait for movement
motion attack: user
wait: 15
attack animation: target
wait for animation
action effect
</target action>
<follow action>
move user: home, 15
motion escape: user
face user: forward
zoom: 100%, 30
</follow action>
</finish action>
motion walk: user
wait: 15
</finish action>
The thing is, right after the sprite attack animation, it draws sprite "1a" for a single frame, before returning to base. This "1a" sprite is placed 1 pixel too low when it does, as it reveals the bottom pixel line of sprite "1" during it. Is there a way to easily fix this? Sprite sheet included. The blue line is supposed to be only visible on sprite "1", but it shows during the single frame, along with the black line from the shoe. This isn't visible during the normal waiting period, before attacking.

Added image of the frame of the sprite shift in gameplay (before I added the numbering and blue line to the sheet).
 

Attachments

Last edited:

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
704
Reaction score
429
First Language
English
Primarily Uses
RMMV
If you remove the zoom effect entirely, the problem most likely won't happen anymore.

I'm not sure what the exact cause is, but when zooming the sprites is involved, weird extra black lines like the one you show randomly show up. It doesn't always happen, though. I think it has something to do with sprite caching.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,458
Reaction score
1,595
First Language
English
Primarily Uses
RMMV
If you remove the zoom effect entirely, the problem most likely won't happen anymore.

I'm not sure what the exact cause is, but when zooming the sprites is involved, weird extra black lines like the one you show randomly show up. It doesn't always happen, though. I think it has something to do with sprite caching.
Hmm, true. Just tested this without the zoom-in, and it looked fine...
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
704
Reaction score
429
First Language
English
Primarily Uses
RMMV
Hmm, true. Just tested this without the zoom-in, and it looked fine...
Also, I noticed this happening a lot more often with an older version of MV (like before 1.5.0) and I haven't really noticed it as much after 1.6.2. I can't say if the core files being updated fixed it, or something else, but try updating your project if possible.
 

Milennin

"With a bang and a boom!"
Veteran
Joined
Feb 7, 2013
Messages
2,458
Reaction score
1,595
First Language
English
Primarily Uses
RMMV
Also, I noticed this happening a lot more often with an older version of MV (like before 1.5.0) and I haven't really noticed it as much after 1.6.2. I can't say if the core files being updated fixed it, or something else, but try updating your project if possible.
I'm using 1.6.1, the version I got when I purchased MZ (just got a new PC, so had to re-install stuff).
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Recent threads, and my very poor algorithm for my minimap plugin have made me face the fact that I need to review algorithms and such.

Going through Cracking the Coding Interview now. I am so excited.
Kes
I've seen a reference to a Community Lighting plugin for MZ, but cannot find it. Is it still in beta?

Todo:
Add fog of war
Add enemy indicators
Make window draggable
Optimise map drawing algorithm (5 seconds to load the map you see, so it's a... poo-poo algorithm)

Any suggestions? :kaoblush:
bleh studio hell job haha at least they like it didnt had time to do much laundry tho ;w;'....YES I DO AT LEAST TAKE A SHOWER everyday!
Ami
--- Food Ingredients ---

Hero: Since the Chef are in Hospital,we can't eat his Dish in 3 Days.
F.Mage: What we have to Eat?
M.Healer: Don't worry,we can Eat the Food Ingredients.
Hero & F.Mage
: Really?

(3 Days Later)

Chef: Hi,Guys. I'm Ba---
(Entire Party Collapse After Eat Raw Meat)
Chef: Wha...WHAT GOING ON HERE!!!!!!

Forum statistics

Threads
102,913
Messages
995,918
Members
134,363
Latest member
Wilsonliz
Top