Jump to content

Photo

BreakShield() and shieldless sprites


  • Please log in to reply
5 replies to this topic

#1 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 19 August 2013 - 10:31 PM

Put simply: I use BreakShield() on enemies with "Hammer breaks shield" set, and I can damage them as if they had no shield. However, their sprites don't change. How would I fix that?

#2 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 20 August 2013 - 05:27 AM

All it does is break the shield regardless if Hammer breaks shield set.

You'll need to manually change the original tile which is what you set in the editor.

Protip: You can use this to give enemies firing animations too.

 

int npc->OriginalTile



#3 David

David

    Fallen leaves... adorn my night.

  • Administrators
  • Real Name:David
  • Pronouns:He / Him

Posted 20 August 2013 - 06:11 AM

Also, can't you set the special tile (the middle box where you choose enemy tiles) for that? That's what Darknuts do, right? They use their special tiles when their shield is broken? Or at least that's what I think...

Edited by DaviAwesome, 20 August 2013 - 10:02 AM.

  • justin likes this

#4 Avaro

Avaro

    >w<

  • Members

Posted 20 August 2013 - 09:55 AM

Also, can't you set the special tile (the middle box where you choose enemy tiles) for that? That's what Darknuts do, right? They use their special tiles when their shield is broken? Or at least that's what I think...

 

Since this thread is in scripting discussion, I think he means autoghosted enemies. But yes, normally darknuts work like that ;D


  • David likes this

#5 David

David

    Fallen leaves... adorn my night.

  • Administrators
  • Real Name:David
  • Pronouns:He / Him

Posted 20 August 2013 - 10:01 AM

Since this thread is in scripting discussion, I think he means autoghosted enemies. But yes, normally darknuts work like that ;D


And I hate not noticing things like that... :)

#6 MoscowModder

MoscowModder

    Sometimes lurking. Rarely posting.

  • Members
  • Location:Wisconsin

Posted 20 August 2013 - 11:30 AM

Unfortunately, this is not for AutoGhosted enemies — this is for any kind of enemy, with a sword move that mimics the Hammer.

I think I can probably find a way to store shieldless tile numbers in Misc Attribs for both AutoGhost and normal enemies, though. Thanks for confirming that this is necessary.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users