Editing Player Hitboxes with SMBx 38A

Description: Subforum dedicated to SMBX-38A - a fan-made remake of the original SMBX Engine, made by 5438A38A.
Forum rules: This is official Europan/American community for the SMBX-38A. Suggested to don't post stuff for this engine outside this subforum.
Moderators: Yoshi021, Lx Xzit, 5438A38A, TepigFan101, Moderators

SgwySpeedrcr
Topic author, Good citizen
Good citizen
SgwySpeedrcr
Topic author, Good citizen
Good citizen
Reputation: 2
Posts: 29
Joined: 4 Dec 2015

Post #1by SgwySpeedrcr » 22 Jun 2017, 17:54

Hello all,

I hope this isn't a frequently asked question. Is it possible to edit the hitboxes of Mario and Luigi? I want to make 38A powerups for the SMA2 Luigi sprite, but to do this I would need to edit the hitboxes to make sure Luigi doesn't have his legs in the floor.

Does PGE Calibration Tool work with 38A? Or has the developer expressed any interest or awareness of the need for this feature?

Any guidance or instruction would be greatly appreciated! I love this community. I lurk here quite often.

- Segway

Greendan M
Count
Count
Avatar
Greendan M
Count
Count
Age: 16
Reputation: 67
Posts: 284
Joined: 26 Apr 2015
Location: Planet Caturn
Website Google+ Skype YouTube

Post #2by Greendan » 22 Jun 2017, 18:30

It is possible with scripts. But this feature is not in the game by default.
Image
Current Project:
Image
Website: https://supermariobrosxgreendanedition.alle.bg

Favourite Catchphrase:
You've cat to be kitten me right meow!

Image
Image
Image


I Support:
Image
Image
Image
Image

SgwySpeedrcr
Topic author, Good citizen
Good citizen
SgwySpeedrcr
Topic author, Good citizen
Good citizen
Reputation: 2
Posts: 29
Joined: 4 Dec 2015

Post #3by SgwySpeedrcr » 22 Jun 2017, 18:52

greendan wrote:It is possible with scripts. But this feature is not in the game by default.

Awesome! Could you recommend which scripts??

Lx Xzit M
Moderator
Moderator
Lx Xzit M
Moderator
Moderator
Reputation: 137
Posts: 430
Joined: 9 Nov 2015
Website

Post #4by Lx Xzit » 22 Jun 2017, 20:42

Code: Select all

do
char(1).pheight = x
char(1).pwidth = x
call sleep(1)
loop


However when the player shrinks it bugs, so better use player's gfx offsets editor (you can find it in "Level Settings" > "Player Settings"
VISIT MY YOUTUBE CHANNEL! LX XZIT

SgwySpeedrcr
Topic author, Good citizen
Good citizen
SgwySpeedrcr
Topic author, Good citizen
Good citizen
Reputation: 2
Posts: 29
Joined: 4 Dec 2015

Post #5by SgwySpeedrcr » 22 Jun 2017, 22:30

I got the code to work and that's great for the player to stay in one size! Like you pointed out, the game glitches pretty bad when the player changes size.

And per your recommendation of the gfx offset, that only shifts the graphics around, not the hitbox, correct?

Lx Xzit M
Moderator
Moderator
Lx Xzit M
Moderator
Moderator
Reputation: 137
Posts: 430
Joined: 9 Nov 2015
Website

Post #6by Lx Xzit » 23 Jun 2017, 18:18

The GFX off-set function will move the player's hitbox to calibrate the sprite
VISIT MY YOUTUBE CHANNEL! LX XZIT

Greendan M
Count
Count
Avatar
Greendan M
Count
Count
Age: 16
Reputation: 67
Posts: 284
Joined: 26 Apr 2015
Location: Planet Caturn
Website Google+ Skype YouTube

Post #7by Greendan » 23 Jun 2017, 20:05

Lx Xzit wrote:The GFX off-set function will move the player's hitbox to calibrate the sprite
Move the player hitbox? How? With Gfx offset you can only move the gfx, but the hitbox stays on the same place.
Image
Current Project:
Image
Website: https://supermariobrosxgreendanedition.alle.bg

Favourite Catchphrase:
You've cat to be kitten me right meow!

Image
Image
Image


I Support:
Image
Image
Image
Image

SgwySpeedrcr
Topic author, Good citizen
Good citizen
SgwySpeedrcr
Topic author, Good citizen
Good citizen
Reputation: 2
Posts: 29
Joined: 4 Dec 2015

Post #8by SgwySpeedrcr » 24 Jun 2017, 8:42

Lx Xzit wrote:The GFX off-set function will move the player's hitbox to calibrate the sprite

I've been carefully testing the GFX offset function and I'm afraid I couldn't get the hitbox to move. Could you specify exactly how to get the "player's hitbox to calibrate?" I'm very excited to hear more.

I only have the "Lite" version of the Player Offset GFX Editor, meaning I didn't beat the math minigame. Does that minigame have something to do with it?

Lx Xzit M
Moderator
Moderator
Lx Xzit M
Moderator
Moderator
Reputation: 137
Posts: 430
Joined: 9 Nov 2015
Website

Post #9by Lx Xzit » 25 Jun 2017, 1:20

My bad, it's only to moving sprites, I explained myself wrong
I don't have the "Full" version neither, so I don't have idea what's the difference
VISIT MY YOUTUBE CHANNEL! LX XZIT

SgwySpeedrcr
Topic author, Good citizen
Good citizen
SgwySpeedrcr
Topic author, Good citizen
Good citizen
Reputation: 2
Posts: 29
Joined: 4 Dec 2015

Post #10by SgwySpeedrcr » 25 Jun 2017, 5:45

Lx Xzit wrote:My bad, it's only to moving sprites, I explained myself wrong
I don't have the "Full" version neither, so I don't have idea what's the difference


Seeing how the "effect gfx editor" will modify hitboxes automatically and that 38A has a lengthy note talking about the more powerful features behind the secret full version, I'm willing to bet that the unlockable version does exactly what you described. I don't want to go back to math class on that minigame but I may have to ;D

Thomas456 M
Duke
Duke
Avatar
Thomas456 M
Duke
Duke
Age: 15
Reputation: 23
Posts: 111
Joined: 12 Oct 2016

Post #11by Thomas456 » 30 Jun 2017, 19:13

I tried to do with the PGE Calibration Tool but that didn't worked, so..... :no:

The only thing to do is witing for 5438A38A to add that by default. :(
Image

I support these projects:

Supports :
Image

Image

Image

Image

Image


Hey! Come see my projects! :

Image Image


Return to “Super Mario Bros. X by 38A (SMBX-38A)”

Who is online (over the past 5 minutes)

Users browsing this forum: 2 guests