Jump to content

Photo

How do you make a scripted enemy larger than 4x4


  • Please log in to reply
2 replies to this topic

#1 Parsnip

Parsnip

    Parsnip

  • Members
  • Real Name:Alex Peters
  • Location:Wisconsin

Posted 04 April 2017 - 07:21 PM

So, I am making a scripted boss and saw that I couldn't make a enemy larger than 4x4. I was told that it's possible to make it larger somehow. I was wondering if anyone would be able to explain to me how this would be done. 

 

Thanks.



#2 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 04 April 2017 - 07:35 PM

Basically you'd have to do all the drawing yourself. You can set the enemy's hitbox size with HitWidth and HitHeight, but you'd have to handle its drawing in a custom waitframe function. Basically you make the function set its DrawYOffset to a really high negative number every frame so the enemy doesn't draw to the screen and then draw a combo of the desired size over it. You can use this->CSet for the cset of the draw so it flashes properly like other ghosted enemies.


  • ShadowTiger, Avaro and Parsnip like this

#3 Parsnip

Parsnip

    Parsnip

  • Members
  • Real Name:Alex Peters
  • Location:Wisconsin

Posted 04 April 2017 - 07:39 PM

Oh, okay thanks :D !




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users