does drawmethod scale attack/body boxes as well?

  • Thread starter Thread starter doranikofu
  • Start date Start date
D

doranikofu

Guest
well...a stupid question but did not see it in the wiki...
when I scale a character does the attackbox and bbox defined in the animation scale together? Thanks!
 
No. Only the sprite drawing is changed - the entity mechanics remain the same. You'll notice this also has an adverse affect on the appearance of things like jump height and walk speed if you --++ far enough in either direction.

Through experimenting, I have found --++ 10% won't be any problem during regular game play, but any more than that is best reserved for special moments.

Incidentally, you can modify collision proprieties through script and then match them to the scaling yourself, but since you are directly setting coordinates you have to manually handle a huge chunk of PITA math the engine normally takes care of for you. Still, the option is there if you want to make mechanically inclusive entity scaling.

DC
 
ooops that is sad. I think the best way is to scale the real picture files and save a copy. Use the scaled picture to set up all the boxes then swap the picture back for the entity...
 
That's not really the problem. Working up math for smaller or larger boxes is easy. The catch is that the real box coordinates are measured not from the entity, but from the stage. The engine calculates this for you to make it simple to use, but if you set them on the fly with script you'll have to figure out the formula yourself.

DC
 
Back
Top Bottom