Author Topic: [Monster] Scorpion - Finished! - New Original Actor  (Read 20394 times)

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
[Monster] Scorpion - Finished! - New Original Actor
« 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)



DropBox Zip Link
« Last Edit: September 12, 2013, 01:49:24 PM by Pwnography »

Hipshot

  • Developer
  • Posts: 455
  • Level Designer
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #1 on: August 26, 2013, 02:59:23 PM »
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.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #2 on: August 26, 2013, 03:10:57 PM »
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!

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #3 on: August 26, 2013, 03:47:03 PM »
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.
« Last Edit: August 26, 2013, 03:49:18 PM by Pwnography »

Bolmaron

  • Posts: 6
  • Maggot Crusher.
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #4 on: August 26, 2013, 04:25:27 PM »
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?

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #5 on: August 26, 2013, 04:31:24 PM »
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.

Juschlan

  • Posts: 75
  • I like trains.
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #6 on: August 26, 2013, 04:49:02 PM »
I get that error too, but if I close it, I can place them as always.

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #7 on: August 26, 2013, 04:50:16 PM »
If the texture box is bigger than the creature, will there be collision issues?

Juschlan

  • Posts: 75
  • I like trains.
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #8 on: August 26, 2013, 04:54:58 PM »
no. Just need to resize the given collision size

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #9 on: August 26, 2013, 05:05:30 PM »
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.. ?

Juschlan

  • Posts: 75
  • I like trains.
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #10 on: August 26, 2013, 05:33:22 PM »
your hitbox is to small

Quote
<actor collision="5" behavior="melee">
collision is 5 (I copied this from tick_2_small.xml

Psyborg

  • Posts: 23
  • Maggot Crusher.
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #11 on: August 26, 2013, 05:38:31 PM »
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. :)

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: [Creature] Scorpion ! Need some help/advice!
« Reply #12 on: August 26, 2013, 08:09:09 PM »
got it thanks! I'm adding a death animation now, and will post it when final!

Heretic

  • Moderator
  • Posts: 305
  • Castle Runner
    • View Profile
Re: [Creature] Scorpion ! Almost Finished - Death Animation
« Reply #13 on: August 27, 2013, 01:53:20 AM »
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?

Myran

  • Developer
  • Posts: 183
    • View Profile
Re: [Creature] Scorpion ! Almost Finished - Death Animation
« Reply #14 on: August 27, 2013, 02:05:01 AM »
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:
Code: [Select]
<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.