PDA

View Full Version : Using one frame of multi-frame image strip, and a little bit of oddness



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

illspirit
07-03-2008, 12:26 AM
Set the array to "1, 1" and it should work. Skipframe is only used if you wanted to use, say, every other frame in a row.

The colored block oddness is probably because the map isn't loading the visual profile until you touch it. Try recreating him, only this time use the Import Blank Entity option from the tile edit --> utilities palette. He'll probably still switch states when you click him in the editor, but at least he should be visible.

Uhfgood
07-03-2008, 02:10 AM
illspirit - thanks! I will do that, I didn't realize there was an import blank entity. Of course there's alot of things in novashell, so it's hard to find certain specific things. I just need to be more diligent so I don't bother you guys with more silly questions :-)