Page 1 of 1

Feature idea

Posted: Sat Mar 21, 2020 7:22 pm
by higgorgao1new
So, we all probably know about SMBX 38a, and there's this feature called “GFX expansion” which can be useful to some recolored sprites, instead of having a different block/NPC/background for each color
All we have to do is just put the sprite at the other side, and setting the sprite size correctly
Example:
Image will turn into Image
the graphics are different, but they act the same way, that's how the feature could work

Re: Feature idea

Posted: Sat Mar 21, 2020 9:46 pm
by DrMekar
higgorgao1new wrote:
Sat Mar 21, 2020 7:22 pm
So, we all probably know about SMBX 38a, and there's this feature called “GFX expansion” which can be useful to some recolored sprites, instead of having a different block/NPC/background for each color
All we have to do is just put the sprite at the other side, and setting the sprite size correctly
Example:
Image will turn into Image
the graphics are different, but they act the same way, that's how the feature could work
You can do that too in SMBX2.

Image
Everyone of this Guys acts like a Blue Snifit.

https://youtu.be/-_Q1bglBjWM

(This Post was kinda Off Topic I know, though since I didn't understood your Point, it seemed fine.)

Re: Feature idea

Posted: Sat Mar 21, 2020 11:37 pm
by Chilly14
DrMekar wrote:
Sat Mar 21, 2020 9:46 pm
higgorgao1new wrote:
Sat Mar 21, 2020 7:22 pm
So, we all probably know about SMBX 38a, and there's this feature called “GFX expansion” which can be useful to some recolored sprites, instead of having a different block/NPC/background for each color
All we have to do is just put the sprite at the other side, and setting the sprite size correctly
Example:
Image will turn into Image
the graphics are different, but they act the same way, that's how the feature could work
You can do that too in SMBX2.

Image
Everyone of this Guys acts like a Blue Snifit.

https://youtu.be/-_Q1bglBjWM

(This Post was kinda Off Topic I know, though since I didn't understood your Point, it seemed fine.)
With Lua or...?

Re: Feature idea

Posted: Sun Mar 22, 2020 6:51 am
by higgorgao1new
Chilly14 wrote:
Sat Mar 21, 2020 11:37 pm
DrMekar wrote:
Sat Mar 21, 2020 9:46 pm
higgorgao1new wrote:
Sat Mar 21, 2020 7:22 pm
So, we all probably know about SMBX 38a, and there's this feature called “GFX expansion” which can be useful to some recolored sprites, instead of having a different block/NPC/background for each color
All we have to do is just put the sprite at the other side, and setting the sprite size correctly
Example:
Image will turn into Image
the graphics are different, but they act the same way, that's how the feature could work
You can do that too in SMBX2.

Image
Everyone of this Guys acts like a Blue Snifit.

https://youtu.be/-_Q1bglBjWM

(This Post was kinda Off Topic I know, though since I didn't understood your Point, it seemed fine.)
With Lua or...?
I think without Lua, I will try

I think with Lua

Re: Feature idea

Posted: Sun Mar 22, 2020 7:09 am
by Emral
Variant sprites (gfx expansion is a terrible name) are on the roadmap. They're tricky to implement in a basegame context. For per-episode or per-level, using them boils down to using Graphics.drawImageToSceneWP() with the correct arguments to draw the NPC sprites manually an offset them horizontally by their variant ID.

Re: Feature idea

Posted: Sun Mar 22, 2020 7:43 am
by DrMekar
higgorgao1new wrote:
Sun Mar 22, 2020 7:03 am
I think with Lua
Barely. Actually the only Lua is the Lua File of the Snifit.

Re: Feature idea

Posted: Mon Mar 23, 2020 11:44 am
by Hoeloe
Enjl wrote:
Sun Mar 22, 2020 7:09 am
Variant sprites (gfx expansion is a terrible name) are on the roadmap. They're tricky to implement in a basegame context. For per-episode or per-level, using them boils down to using Graphics.drawImageToSceneWP() with the correct arguments to draw the NPC sprites manually an offset them horizontally by their variant ID.
There's also the discussion on how best to actually implement them. I'm an advocate for separate image files for each alt gfx, which would allow for easier copying of custom graphics. Perhaps we could consider some hybrid, where either is supported, prioritizing one of them...