I have been searching the scripts for the code that defines that the surfing and the diving character sprites will only use 2 frames. I want to change it to use the entire row (4 frames) instead.
Does anyone knows where can I find it? Any subtlety I should notice related to the auto-update of the graphics?
Changing the (Graphics.frame_count%60)<30 obviously changed the speed in which the animation changes.
Changing the ? 0 : 1 changed which parts of the sprite are used (like 0 : 3 oscilates between frame 0 and frame 3.
However, I don't know how to modify it, so to change from 0 to 1, then from one to 2 and so on.
I know it should be something simple, like a slight modification in the 0 : 1 part, but my attempts failed.
Any help on that would be really appreciated.
This line gives you two possible values for bob: 0 or 1. The value of bob is used to decide which frame of the charset is used. You want bob to have 4 possible values (0-3), sequentially and evenly-spaced.
That's a possibility. You'll then need to make sure that the lines that use bob make sense, given how bob now works (i.e. it has 4 possible values rather than 2). The self.oy= line will need to be tweaked in some way.