I need to modify sprites

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

KnownStranger
Blooper
Blooper
Posts: 155
Joined: Fri Jun 18, 2021 4:36 pm

I need to modify sprites

Postby KnownStranger » 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
Rocky Wrench
Rocky Wrench
Posts: 638
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.

KnownStranger
Blooper
Blooper
Posts: 155
Joined: Fri Jun 18, 2021 4:36 pm

Re: I need to modify sprites

Postby KnownStranger » 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
2025 Egg Hunter
2025 Egg Hunter
Posts: 547
Joined: Tue Aug 25, 2020 3:19 am
Flair: Dr. Bones
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 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari