Page 1 of 1

Trouble at making bigger enemies

Posted: Mon Nov 14, 2016 1:58 pm
by Adeleine Fan
Hi guys, this is my first post on this forum.
Well, my idea was to make a boss battle against Bowser from SMB3 (npc-86), but I wanted to make Bowser four times bigger than before, so I wrote on a notepad for its level something like this (width=256 height=320) and it worked just fine, now it had a much bigger hitbox, the only thing that was missing was a sprite at the same size as the one I wrote on the notepad. Once the bigger sprite was done and archived on the level folder I tested the level but for some reason the sprite is not fully appearing in game, in other words, it is being cut, and that is weird because the bigger hitbox is there but the sprite isn't. Am I doing something wrong?
I would be happy if someone give me an advice thanks.

Re: Trouble at making bigger enemies

Posted: Mon Nov 14, 2016 2:05 pm
by Emral
width and height fields modify hitbox
gfxwidth and gfxheight fields modify sprite size

so what you want is to have those in addition to your width and height fields:
width=256
height=320
gfxwidth=256
gfxheight=320

The reason SMBX works like this is that often times you want an NPC's hitbox to be smaller than the sprite.

Re: Trouble at making bigger enemies

Posted: Mon Nov 14, 2016 2:10 pm
by Adeleine Fan
Oh wow at the end of the day it was a very simple problem. Thanks for the help dude.

Re: Trouble at making bigger enemies

Posted: Mon Nov 14, 2016 2:12 pm
by Emral
No problem! If you have another problem with txt files, you can find everything about them here: http://www.smbxgame.com/forums/v ... f=35&t=425