Author Topic: Enemy killing anamiation  (Read 5153 times)

zbjester77

  • Visitor
  • *
  • Posts: 8
    • AOL Instant Messenger - lvl+7+barbarian
    • View Profile
    • Email
Enemy killing anamiation
« on: 2007-03-15, 12:00:15 PM »
Hey, I'm new to the forums,  I have been using the SGDK for years on and off. Usually I get discouraged, but lately I think I have gotten the hang of most of it. I

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Enemy killing anamiation
« Reply #1 on: 2007-03-15, 01:13:13 PM »
As part of the collision definition that destroys the enemy sprite you can tell it to also activate a function.  Then you can make that function create a sprite that looks like you want a dying/dead enemy to appear.  The function should create the sprite relative to the trigger point, which will cause it to be created where the collision occurred.

And to change the tank when it's shooting you could create a sprite that ovelaps the tank to make it look different when it's shooting, but getting it to be in the right state might be tricky if it needs to point in a particular direction -- that might require script.

Does that get you anywhere?

zbjester77

  • Visitor
  • *
  • Posts: 8
    • AOL Instant Messenger - lvl+7+barbarian
    • View Profile
    • Email
Re: Enemy killing anamiation
« Reply #2 on: 2007-03-15, 01:47:40 PM »
hey thanks alot. That was fast.

Yeah im working right now with a 8-direction character with no animation, so it shouldnt be a problem to over lap. if i have any trouble i will post it back up here. thanks again.