Uhfgood
07-02-2008, 10:40 PM
Firstly I am trying to make an "idle" animation out of an image strip for a walking animation. I thought I had it right when extracting the second frame (or any single frame for that matter), but apparently the idle animation that runs, runs as an actual animation.
Here's the bit of xml in the profile.
<sprite name="idle_right">
<image file="../maps/_Graphics/DummyWalk_right.png">
<grid
pos="128,0"
size="128,128"
array="4,1"
array_skipframes="2" />
</image>
<translation origin="center"/>
</sprite>
Problem here is, position is 128 (meaning i want to start on the second frame in), size of course is 128x128, array 4,1 is the amount of tiles in the image strip, array_skipframes -- I thought meant after that last frame cut, forget the last 2 frames. Unfortunately it seems to play the animation (maybe not even all frames, i can't tell, but still not a single still image). I'm trying to use a single frame (second frame in the image strip) as the idle "animation"
Also here's an oddity, while it's not technically a bug, i thought I should mention. I mention it here because like i said I don't think it's like a real bug. See to make my brainless dummy entity, I took a color block and copied it to the map, then, I modified it to use the visual profile... Odd thing is when i fire up the editor it shows up like in the first image (oddprob01.jpg),
If I move the entity, the sprite shows up like the second image (oddprob02.jpg).
Reason I don't think it's a bug per se, is that I used a colored block from the system palette map to create my entity -- so it has something to do with that.
Keith
Here's the bit of xml in the profile.
<sprite name="idle_right">
<image file="../maps/_Graphics/DummyWalk_right.png">
<grid
pos="128,0"
size="128,128"
array="4,1"
array_skipframes="2" />
</image>
<translation origin="center"/>
</sprite>
Problem here is, position is 128 (meaning i want to start on the second frame in), size of course is 128x128, array 4,1 is the amount of tiles in the image strip, array_skipframes -- I thought meant after that last frame cut, forget the last 2 frames. Unfortunately it seems to play the animation (maybe not even all frames, i can't tell, but still not a single still image). I'm trying to use a single frame (second frame in the image strip) as the idle "animation"
Also here's an oddity, while it's not technically a bug, i thought I should mention. I mention it here because like i said I don't think it's like a real bug. See to make my brainless dummy entity, I took a color block and copied it to the map, then, I modified it to use the visual profile... Odd thing is when i fire up the editor it shows up like in the first image (oddprob01.jpg),
If I move the entity, the sprite shows up like the second image (oddprob02.jpg).
Reason I don't think it's a bug per se, is that I used a colored block from the system palette map to create my entity -- so it has something to do with that.
Keith