Page 2 of 2

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Mar 06, 2017 7:11 pm
by Tempest
Sambo wrote:You could always use this:
http://wohlsoft.ru/pgewiki/PlayerGfx.lua.
Just make the player big Mario, then replace his sprites with the custom ones using this API.
If you do it in a certain way, no existing powerups need to be replaced.
Hm. Okay.
Sambo wrote:Also, Mario's shoes should be blue for a closer resemblance to the trophy you based it off of.
I was thinking about doing that, but i didn't cuz i wanted to keep that SMB3 style.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Sat Mar 31, 2018 4:14 pm
by Grand Goomba
Credit to Tempest for the Boomerang Suit! I am sure to download this one.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Sat Mar 31, 2018 4:36 pm
by Grand Goomba
I've got a bug report. I loaded it as usual, but I threw hammers instead of hammers. Help please?

I can assure you I am using SMBX 2.0.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Sat Mar 31, 2018 4:38 pm
by Tempest
Grand Goomba wrote:I've got a bug report. I loaded it as usual, but I threw hammers instead of hammers. Help please?

I can assure you I am using SMBX 2.0.
That's strange. Most of my old powerups are very outdated (like this one), so the code might have some flaws. I'll fix it soon, thanks :D

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 5:51 pm
by Grand Goomba
I've got another question. Will more than just one of your Power-UPS work in the same level, a hub level for example?

And by the way I got your Boomerang Suit working, so don't worry too much about that.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 6:17 pm
by Artemis008
Grand Goomba wrote:I've got another question. Will more than just one of your Power-UPS work in the same level, a hub level for example?

And by the way I got your Boomerang Suit working, so don't worry too much about that.
If they replace different default power ups than I don't see why not.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 6:29 pm
by Grand Goomba
Artemis008 wrote: If they replace different default power ups than I don't see why not.
I could do that, I suppose. The problem, however, is that every file for each Power-UP has a LunaDLL file. I couldn't use both at once, could I? Although I suppose I could rename these .lua files as Power1.lua, Power2.lua, etc. Do you suppose that would work?

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 6:35 pm
by Artemis008
Grand Goomba wrote:
Artemis008 wrote: If they replace different default power ups than I don't see why not.
I could do that, I suppose. The problem, however, is that every file for each Power-UP has a LunaDLL file. I couldn't use both at once, could I? Although I suppose I could rename these .lua files as Power1.lua, Power2.lua, etc. Do you suppose that would work?
It's been a while since I used LUA in a level so I might be wrong, but aren't you supposed to have one luna.dll file that loads multiple API's? So it would be something like this

API Load = (first script name here)
API Load = (second script name here)

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 6:43 pm
by The0x539
Artemis008 wrote:
Grand Goomba wrote:
Artemis008 wrote: If they replace different default power ups than I don't see why not.
I could do that, I suppose. The problem, however, is that every file for each Power-UP has a LunaDLL file. I couldn't use both at once, could I? Although I suppose I could rename these .lua files as Power1.lua, Power2.lua, etc. Do you suppose that would work?
It's been a while since I used LUA in a level so I might be wrong, but aren't you supposed to have one luna.dll file that loads multiple API's? So it would be something like this

API Load = (first script name here)
API Load = (second script name here)
For some reason, Tempest didn't make these as APIs, so the code would need to be edited a bit, to function as Lua APIs that one loads.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 7:44 pm
by Grand Goomba
I put both APIs into one LUA file but it didn't work. Could someone please help me?

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 8:14 pm
by PixelPest
Grand Goomba wrote:I put both APIs into one LUA file but it didn't work. Could someone please help me?
Yeah that definitely won't work. The way LunaLua works you can't have duplicate events in the code or else they'll basically overwrite each other and there are probably other conflicts between the codes as well. You can't just expect to throw stuff together and expect it to magically work in harmony when you're working with any kind of code

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon Apr 02, 2018 10:43 pm
by Tempest
Sorry for the late reply but, it's because I never tried to actually make an API, I might try another time tho. Currently I'm working on a V2 for the phoenix suit, but if everything works correctly I'll try to turn everything into APIs soon.

Also, it might take a while for me to make future updates, I have a lot of things to do and, to be honest, I'm pretty lazy :P

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Tue Apr 03, 2018 1:48 am
by The0x539
Tempest wrote:Sorry for the late reply but, it's because I never tried to actually make an API, I might try another time tho. Currently I'm working on a V2 for the phoenix suit, but if everything works correctly I'll try to turn everything into APIs soon.

Also, it might take a while for me to make future updates, I have a lot of things to do and, to be honest, I'm pretty lazy :P
Making an API isn't hard: https://wohlsoft.ru/pgewiki/How_To:_Mak ... custom_API
This tutorial is generally accurate, but it's common to name the functions after the event handler, so:

Code: Select all

function myAPI.onTick()
	--stuff
end

function myAPI.onInitAPI()
	registerEvent(myAPI, "onTick")
end

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Sun May 24, 2020 10:51 pm
by King Mario
Hey there, Beta 4 is out. Do you think you could make this B4-compatible?

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon May 25, 2020 11:18 am
by TheGameyFireBro105
Can you please make it work for luigi!

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon May 25, 2020 11:43 am
by Sonya Sanchez
King Mario wrote:
Sun May 24, 2020 10:51 pm
Hey there, Beta 4 is out. Do you think you could make this B4-compatible?
TheGameyFireBro105 wrote:Can you please make it work for luigi!
The OP hasn't been online since near the end of 2019, while there might be hope he might come back and do it I wouldn’t count on it.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Mon May 25, 2020 8:54 pm
by King Mario
Idunn wrote: The OP hasn't been online since near the end of 2019, while there might be hope he might come back and do it I wouldn’t count on it.
In that case, maybe someone has a copy of this Power-UP and can modify it.

Re: Boomerang Flower V1.0 w/ Custom GFX!

Posted: Tue Jun 23, 2020 4:13 pm
by Tempest
King Mario wrote:
Mon May 25, 2020 8:54 pm
Idunn wrote: The OP hasn't been online since near the end of 2019, while there might be hope he might come back and do it I wouldn’t count on it.
tbh i've just completely given up on this community
don't expect any updates for anything i've ever worked on in here, lunalua is actual ass to work with and i've found better fangames (in my personal taste) to spend my time on
besides, working on anything smbx related has only caused me more headaches than satisfaction
my bad if anyone was expecting more features or whatever, this whole site has become more of a pebble in my shoe than anything else