Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2016-08-30 22:08:59

Rangi
Member
Registered: 2016-05-09
Post 141/631

Animating a sprite in pokecrystal

metalflygon08 drew these frames for a Sylveon animation, which is supposed to look like this. (That's a frame sequence: 0, 1, 2, 3, 4, 5, 0, 5, 0, 6, 0, 6, 0.) gfx.py automatically converted that framestrip into front.2bpp.lz with its associated bitmask.asm and frames.asm, but did not create anim0.asm or anim1.asm. I tried writing this for anim0.asm:

frame 0, 08
frame 1, 08
frame 2, 08
frame 3, 08
frame 4, 08
frame 5, 08
frame 0, 08
frame 5, 08
frame 0, 08
frame 6, 08
frame 0, 08
frame 6, 08
frame 0, 08
endanim

But the result has some flickering parts. The same thing happens when I do a simple sequence of frames 0 to 6. Is this an issue with the bitmask or frames files? Also, I can't tell what I should be writing for anim1.asm. Please help me get this sprite to work.

Last edited by Rangi (2016-08-30 22:20:01)


ROM hack: Pokémon Polished Crystal — version 2.2.0 released!

Online

#2 2016-09-11 19:43:04

MechanicalPen
Member
Registered: 2016-06-22
Post 8/28

Re: Animating a sprite in pokecrystal

This is a straight up guess, but I'm guessing the missing bits are the ones anim1.asm draws. Does gfx.py show any error when it runs?

Offline

#3 2017-01-04 13:59:38

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 449/493

Re: Animating a sprite in pokecrystal

I've been having trouble adding a Wingull sprite using this as well. Except when I tried doing what you did I got a syntax error.

2KqTdnm.png

Did you ever figure this out or are you still stumped?

Offline

#4 2017-01-04 14:28:54

Rangi
Member
Registered: 2016-05-09
Post 457/631

Re: Animating a sprite in pokecrystal

What syntax error do you get?

When I run "./gfx.py 2bpp gfx/pics/wingull/front.png" on a series of frames like that, the frames.asm and bitmask.asm files that it generates make a glitchy animation, as the video shows. Haven't solved the problem.


ROM hack: Pokémon Polished Crystal — version 2.2.0 released!

Online

#5 2017-01-04 14:38:59

Kuroko Aizawa
Member
Registered: 2011-12-01
Post 451/493

Re: Animating a sprite in pokecrystal

It will syntax on the first line, being:

frame 0, 08

I've disabled the animation for now. Tried to see how Koolboyman did it but it seems he did it the hard way like all of us have to.

Offline

Board footer

Powered by FluxBB