Support and General Use > Theming and Appearance Customization
Help getting this little guy to dance! (iPod 4G greyscale)
Devante:
I modified the boxes theme a little and wanted to add the little guy from the Dancing Puffs Duo theme.
However, I just can't seem to get the little guy to dance.
He just sits there in the last frame of "animation".
Can anyone shed a little advice on what I may be doing wrong?
The filenames for the 4 frames of animation are puff1.bmp to puff4.bmp.
The very last line of the following code/wps should display and animate him.
Here's the theme if anyone wants to see what's actually happening: link
Thanks for any advice!
--- Quote ---%X|background.bmp|
%xl|a|x.bmp|0|0|
%xl|b|x.bmp|0|0|
%xl|c|x.bmp|0|0|
%xl|d|x.bmp|0|0|
%xl|e|x.bmp|0|0|
%xl|f|x.bmp|0|0|
%xl|g|x.bmp|0|0|
%xl|h|x.bmp|0|0|
%xl|i|x.bmp|0|0|
%xl|j|x.bmp|0|0|
%xl|k|x.bmp|0|0|
%xl|l|disk_active.bmp|146|12|
%xl|m|rpt-all.bmp|129|1|
%xl|n|rpt-one.bmp|129|1|
%xl|o|rpt-shf.bmp|129|1|
%xl|p|nav-stop.bmp|68|3|
%xl|q|nav-play.bmp|68|3|
%xl|r|nav-pause.bmp|68|3|
%xl|s|nav-ffwd.bmp|68|3|
%xl|t|nav-rwnd.bmp|68|3|
%xl|u|shf.bmp|129|16|
%xl|v|lock-m.bmp|87|0|
%xl|w|x.bmp|0|0|
%xl|x|lock-r.bmp|87|12|
%xl|y|x.bmp|0|0|
%xl|z|x.bmp|0|0|
%xl|A|x.bmp|0|0|
%xl|B|vol-0.bmp|12|4|
%xl|C|vol-1.bmp|12|4|
%xl|D|vol-2.bmp|12|4|
%xl|E|vol-3.bmp|12|4|
%xl|F|vol-4.bmp|12|4|
%xl|G|vol-5.bmp|12|4|
%xl|H|vol-6.bmp|12|4|
%xl|I|vol-7.bmp|12|4|
%xl|J|vol-8.bmp|12|4|
%xl|K|vol-9.bmp|12|4|
%xl|L|vol-10.bmp|12|4|
%xl|M|x.bmp|0|0|
%xl|N|x.bmp|0|0|
%xl|O|bat-0.bmp|142|1|
%xl|P|bat-1.bmp|142|1|
%xl|Q|bat-2.bmp|142|1|
%xl|R|bat-3.bmp|142|1|
%xl|S|bat-4.bmp|142|1|
%xl|T|pwr.bmp|149|1|
%xl|U|x.bmp|0|0|
%xl|V|x.bmp|0|0|
%xl|W|puff1.bmp|93|1|
%xl|X|puff2.bmp|93|1|
%xl|Y|puff3.bmp|93|1|
%xl|Z|puff4.bmp|93|1|
%wd
%ac%s%?ia
%ac%s%?id
%ac%s%?it
%pp of %pe
%ar-%pr / %pt
%pb
%ac%t5%s%?It;%ac%t5%s%?Ia
%?pv
%?bp
%?mm
%?mp
%?ps
%?mh
%?mr
%?lh
%t0.2%xdW;%t0.2%xdX;%t0.2%xdY;%t0.2%xdZ
--- End quote ---
JustJohnny:
Hi,
See this link: http://www.rockbox.org/twiki/bin/view/Main/CustomWPS#Alternating_Sublines
I think you need to use the alternating sublines (%s) tag to create an animation effect.
pixelma:
--- Quote from: JustJohnny link=topic=8620.msg66965#msg66965 ---I think you need to use the alternating sublines (%s) tag to create an animation effect.
--- End quote ---
The "%s" tag is not for alternating sublines - it defines whether a line should scroll or not.
The code already contains the necessary tag ("%t0.2" for example) and marks the end of that subline (";") - I've also experienced that it doesn't always work correctly. One thing that helped was adding a character after every %xd.. tag in the relevant wps-line. I don't know why but maybe it helps clearing the screen so that a new bmp can be drawn or whatever.
What happens when you change the last line to the following for example?
--- Code: ---%t0.2%xdWz;%t0.2%xdXz;%t0.2%xdYz;%t0.2%xdZz
--- End code ---
Genre9mp3:
--- Code: ---%t0.2 %xdW;%t0.2 %xdX;%t0.2 %xdY;%t0.2 %xdZ
--- End code ---
This should make it work. Just add spaces between "%t0.2" and "%xd..."
Devante:
The spacing trick worked perfect.
Thanks so much. :>
Navigation
[0] Message Index
[#] Next page
Go to full version