Hammerwatch Forum
Custom mapping and Mods => Resources => Topic started by: Heretic on August 26, 2013, 02:48:38 PM
-
Thanks for all of the help from everyone!
Features:
Idle animations
Death animation - corpse sticks around for a few seconds and then blinks out
Multiple Attacks (claws from north, south, east, west, tail sting from diagonals)
(http://i.imgur.com/qfF8KlW.png)
DropBox Zip Link (https://www.dropbox.com/s/5vqxxx2npivt930/scorpion_1.zip)
-
Your problem here is, that you have defined a much larger sprite size than what you need.
You see the idle south angle in the editor and your idle south angle now displays too much.
Instead of showing 54 60, try 20 20.
-
Ah I misread! I thought the second coordinates was for the bottom right of the frame, but its actually the size of the frame with the first coordinate as 0,0. Makes sense now thanks!
-
What does it mean when it says texture sizes must be power of 2? It's not letting me import it to the editor, when I try to refresh resources it gives that error.
-
http://en.wikipedia.org/wiki/Power_of_two#The_first_96_powers_of_two
So apparently it will accept 8, 16, 32, but not 20 as texture's dimension?
-
Yeah, so 8, 16, 32, 64, 128, 256, 512, 1024 are the texture dimensions you should stick by. Bigger than that some graphics cards will have problems.
-
I get that error too, but if I close it, I can place them as always.
-
If the texture box is bigger than the creature, will there be collision issues?
-
no. Just need to resize the given collision size
-
I can't get my collision to work right... They are way far away buy can hit me, I have to walk over the texture to be able to hit the collision box behind them.. ?
-
your hitbox is to small
<actor collision="5" behavior="melee">
collision is 5 (I copied this from tick_2_small.xml
-
I can't get my collision to work right... They are way far away buy can hit me, I have to walk over the texture to be able to hit the collision box behind them.. ?
Make sure the origin is right in the center of the creature sprite. Then, adjust the collision number to something that just encircles the sprite. You can check this by pressing F1 (Show Physics) in the editor; it will show a circle for the hitbox of your monster. :)
-
got it thanks! I'm adding a death animation now, and will post it when final!
-
Can't get the death animation to stay after it plays :( The best luck I've had is getting the animation to play via the actor's xml, but then either the corpse doesn't show or it shows double - immediately on death and stays after the animation too.
Anyone offer any help on getting it to animate and also keep the last frame?
-
Hmm, doing a corpse that stays could be bad for performance if you plan on using a lot of scorpions (probably not that bad, but still), but anyway, the way this is done is you make a doodad with the last frame of the death animation and if you want also a physics shape, and then you set the doodad as the corpse of the actor with a line like this in the behavior:
<entry name="corpse"><string>actors/tower_flower_1_razed.xml</string></entry>
You can take a look at the towers, spawners or bosses for reference.
-
The towers, spawners, and bosses don't have a death animation though? The corpse.xml is just the one frame, and the actor doesn't have a death animation in their .xml?
-
Right, but I don't think there's a problem with having both a corpse and a death animation.
-
The towers, spawners, and bosses don't have a death animation though? The corpse.xml is just the one frame, and the actor doesn't have a death animation in their .xml?
the corpse will spawn at the end of a death animation.
-
the corpse will spawn at the end of a death animation.
On mine, the corpse spawns at the beginning of the animation, and also at the end. So it looks almost like theres two corpses. The way I have it now though, I like it better I think - it plays an animation and shows the corpse for 5 seconds, then it blinks out. A bit like in the older TMNT games eh? :D
-
I like the "corpse is here for a few seconds, then disappears" approach too.
Nice scorpion!
-
I like the "corpse is here for a few seconds, then disappears" approach too.
Nice scorpion!
Thanks! Means a lot :D I'm having a blast pouring hours into making these things. I've got a few more almost polished, I hope to make a decent custom map soon to showcase some of these things. I'm particularly proud of one item that I can't wait to show off :D
-
Ooooo, nice scorpion! C:
-
Just updated the link - it was dead sorry!