I need to modify sprites

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
Twisted4932
Monty Mole
Monty Mole
Posts: 143
Joined: Fri Jun 18, 2021 4:36 pm
Flair: Inactive for now.
Pronouns: He/him

I need to modify sprites

Postby Twisted4932 » Fri May 06, 2022 10:12 pm

I am editing Luigi's sprites, but I don't know how to make bigger frames or whatever they are called. Is it possible? How can I do it?

deice
Buster Beetle
Buster Beetle
Posts: 441
Joined: Fri Jul 23, 2021 7:35 am

Re: I need to modify sprites

Postby deice » Sat May 07, 2022 8:05 am

if you want to make an individual image inside a sprite sheet bigger, then i'm afraid smbx doesn't let you go above 100x100 by default. if you want to edit the player's hitbox/graphic offsets, you can use "pge_calibrator.exe" located within data/PGE. this will let you generate ini files which you can place in your episode/level folder in order to override those settings.

also, although it would technically be possible to just make the player completely invisible and then use a lua script to manually draw the correct frame which would let you go beyond the 100x100 limit, this would invariably be somewhat difficult to pull off.

Twisted4932
Monty Mole
Monty Mole
Posts: 143
Joined: Fri Jun 18, 2021 4:36 pm
Flair: Inactive for now.
Pronouns: He/him

Re: I need to modify sprites

Postby Twisted4932 » Sat May 07, 2022 10:56 am

Sorry if I didn't explain it well.
Here's an image.
Image
The red square is the GRAPHIC size (I don't mean the hitbox).
Left image: default graphic.
Right image: bigger graphic (what I want).
It will work without problems if I want to increase the graphic size?

Marioman2007
Buster Beetle
Buster Beetle
Posts: 401
Joined: Tue Aug 25, 2020 3:19 am
Pronouns: He/Him

Re: I need to modify sprites

Postby Marioman2007 » Sat May 07, 2022 12:14 pm

Player GFX can be of any size, shorter than 100x100 pixels

I always prefer to use Uniform offsets by MrDoubleA (for SMBX2):
viewtopic.php?f=31&t=26127&p=380263#p380263

..and to make your life a lot easier, use this pretty awesome tool by Enjl:
viewtopic.php?f=69&t=24109


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests