What's the difference between Height and GFXHeight

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

Valentine
Silver Yoshi Egg
Silver Yoshi Egg
Posts: 2049
Joined: Wed Jan 01, 2014 6:50 am
Flair: evil device
Pronouns: She/They

What's the difference between Height and GFXHeight

Postby Valentine » Thu Jun 12, 2014 7:02 am

Those are both npc codes, but i don't understand how they are different... Can someone explain to me what's the difference

RudeGuy
Fry Guy
Fry Guy
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: What's the difference between Height and GFXHeight

Postby RudeGuy » Thu Jun 12, 2014 7:21 am

Translate them to your language.

zlaker
Birdo
Birdo
Posts: 2844
Joined: Fri Dec 20, 2013 1:46 pm

Re: What's the difference between Height and GFXHeight

Postby zlaker » Thu Jun 12, 2014 7:22 am

Christian07 wrote:Translate them to your language.
He means what's the differnece. I think he knows what words mean

RudeGuy
Fry Guy
Fry Guy
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: What's the difference between Height and GFXHeight

Postby RudeGuy » Thu Jun 12, 2014 7:34 am

Ice wrote:
Christian07 wrote:Translate them to your language.
He means what's the differnece. I think he knows what words mean
Well...OK.

The only differance of height and GFXheight is that the first one is the height of the NPC in the game, and the second one is the height of the NPC in the IMAGE.

Valentine
Silver Yoshi Egg
Silver Yoshi Egg
Posts: 2049
Joined: Wed Jan 01, 2014 6:50 am
Flair: evil device
Pronouns: She/They

Re: What's the difference between Height and GFXHeight

Postby Valentine » Thu Jun 12, 2014 7:39 am

i think i understand it now, thanks

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: What's the difference between Height and GFXHeight

Postby bossedit8 » Thu Jun 12, 2014 8:59 am

To be exact on that:
width= The NPCs hitbox width (in pixels)
height= The NPCs hitbox height (in pixels)
gfxheight= Only set if sprite height is different than Hit box height.
gfxwidth= Only set if sprite width is different than Hit box width.

Chad
Ripper II
Ripper II
Posts: 330
Joined: Sun Mar 02, 2014 3:22 pm

Re: What's the difference between Height and GFXHeight

Postby Chad » Thu Jun 12, 2014 9:23 am

Actually, with some NPCs, you do need to specify all four even if only one of them is changed, regardless of what the others are like. That aside, bossedit and Christian07 are correct.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari