Page 1 of 2

Boomerang Flower V1.0 w/ Custom GFX!

Posted: Thu Mar 02, 2017 7:41 pm
by Tempest
practicalshorty014 wrote:Can you by any chance make a Boomerang Bro Suit?
Image
Here you go.

http://www.mediafire.com/file/cr65d644n ... empest.zip

It's a custom Boomerang Suit. It replaces the hammer suit and allows the player to throw boomerangs.

Image

In case you couldn't tell, i took the SMBX 1.4.3 mario-9 sprites, added that hammer suit hat on top and changed some of the colors & other stuff.

If you have any suggestions for a new powerup or have found any bugs/glitches, let me know.

GIVE CREDIT IF USED.

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

Posted: Thu Mar 02, 2017 11:50 pm
by MacDuckBeat
Is it only me the code isn't working though ?
Image

And here's the current code that it wasn't working.
Spoiler: show

Code: Select all

local BoomerangLock = 0

function onTick()
	if player.powerup == PLAYER_HAMMER then
		if player.character == CHARACTER_MARIO then
			if BoomerangLock == 0 then
				if(player.runKeyPressing) then
					for k,v in pairs(NPC.get(171,-1)) do
						v.id = 292
						v.width = 32
						v.height = 32
						v:mem(0x110,FIELD_DFLOAT,1)
						if BoomerangLock == 0 then
							if player:mem(0x106,FIELD_WORD) ~= -1 then
								BoomerangLock = 1
								v.x = v.x + 2
								v.speedX = 25
								v.speedY = -10
							else
								v.x = v.x - 2
								v.speedX = -25
								v.speedY = -10
								BoomerangLock = 1
							end
						end
					end
				end
			else
				local BoomerangCheck = NPC.get(292,-1)
				if table.getn(BoomerangCheck) == 0 then
					BoomerangLock = 0
				else
					player:mem(0x160,FIELD_WORD,2)
				end
			end
		end
	end
end

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

Posted: Fri Mar 03, 2017 3:59 pm
by Tempest
RSuper wrote:Is it only me the code isn't working though ?
Image
It works fine with me. Are you playing as Mario?

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

Posted: Fri Mar 03, 2017 6:20 pm
by MacDuckBeat
Tempes wrote:
RSuper wrote:Is it only me the code isn't working though ?
Image
It works fine with me. Are you playing as Mario?
It is.

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

Posted: Fri Mar 03, 2017 6:53 pm
by Tempest
RSuper wrote:
Tempes wrote:
RSuper wrote:Is it only me the code isn't working though ?
Image
It works fine with me. Are you playing as Mario?
It is.
Wait a minute, that cursor...

What version are you playing this in? I'm pretty sure that cursor doesn't show up while playing in 2.0.

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

Posted: Fri Mar 03, 2017 7:43 pm
by MacDuckBeat
Tempes wrote:
RSuper wrote:
Tempes wrote:
It works fine with me. Are you playing as Mario?
It is.
Wait a minute, that cursor...

What version are you playing this in? I'm pretty sure that cursor doesn't show up while playing in 2.0.
You could have guarantee 100% I'm using 1.3.0.2. But I can't test it with LunaTester.

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

Posted: Fri Mar 03, 2017 7:47 pm
by Tempest
RSuper wrote:
Tempes wrote:
RSuper wrote: It is.
Wait a minute, that cursor...

What version are you playing this in? I'm pretty sure that cursor doesn't show up while playing in 2.0.
You could have guarantee 100% I'm using 1.3.0.2. But I can't test it with LunaTester.
It doesn't work in 1.3.0.2, it uses LunaLua coding.

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

Posted: Fri Mar 03, 2017 8:21 pm
by Shin
Tempes wrote:
RSuper wrote:
Tempes wrote:
Wait a minute, that cursor...

What version are you playing this in? I'm pretty sure that cursor doesn't show up while playing in 2.0.
You could have guarantee 100% I'm using 1.3.0.2. But I can't test it with LunaTester.
It doesn't work in 1.3.0.2, it uses LunaLua coding.
1.3.0.1 and 1.3.0.2 are two different things. 1.3.0.1 is the vanilla version, and 1.3.0.2 is the one that includes LunaLua.

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

Posted: Fri Mar 03, 2017 8:25 pm
by Tempest
Shin wrote:
Tempes wrote:
RSuper wrote: You could have guarantee 100% I'm using 1.3.0.2. But I can't test it with LunaTester.
It doesn't work in 1.3.0.2, it uses LunaLua coding.
1.3.0.1 and 1.3.0.2 are two different things. 1.3.0.1 is the vanilla version, and 1.3.0.2 is the one that includes LunaLua.
oh

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

Posted: Fri Mar 03, 2017 8:44 pm
by timocomsmbx2345
Doesthis go over the hammer suit?

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

Posted: Fri Mar 03, 2017 10:08 pm
by Tempest
timocomsmbx2345 wrote:Doesthis go over the hammer suit?
(Sorry for the late reply)

Yep.

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

Posted: Fri Mar 03, 2017 10:09 pm
by krakin
Sweet, this is bringing back memories of Super Mario 3D World! Good job.

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

Posted: Sat Mar 04, 2017 8:21 am
by Inspirited
Besides this one I can only find 2 other custom powerups on this forum. Please, make more! There's SO many possibilities! Also does it really have to override an existing powerup?

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

Posted: Sat Mar 04, 2017 9:58 am
by PersonNamedUser
Inspirited wrote:Also does it really have to override an existing powerup?
Sadly, as far as my knowledge goes, yes.
btw, nice job on this

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

Posted: Sat Mar 04, 2017 11:33 am
by Tempest
practicalshorty014 wrote:Sweet, this is bringing back memories of Super Mario 3D World! Good job.
MosaicMario wrote:btw, nice job on this
Thanks! :D
Inspirited wrote:Besides this one I can only find 2 other custom powerups on this forum. Please, make more! There's SO many possibilities! Also does it really have to override an existing powerup?
You bet i will! And actually, i already made 4: Phoenix, Mole, Beetroot and this one.

Unfortunately, yes, it has to override an existing powerup.

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

Posted: Sat Mar 04, 2017 6:35 pm
by Quantumenace
Inspirited wrote:Also does it really have to override an existing powerup?
HenryRichard made this so it's possible. It would help if that existed as a separate API, though.

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

Posted: Sun Mar 05, 2017 9:59 am
by AirSeus
Shin wrote:
Tempes wrote:
RSuper wrote: You could have guarantee 100% I'm using 1.3.0.2. But I can't test it with LunaTester.
It doesn't work in 1.3.0.2, it uses LunaLua coding.
1.3.0.1 and 1.3.0.2 are two different things. 1.3.0.1 is the vanilla version, and 1.3.0.2 is the one that includes LunaLua.
You mean Lunaddl

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

Posted: Sun Mar 05, 2017 10:41 am
by Snessy the duck
IzIcy wrote:
Shin wrote:
Tempes wrote:
It doesn't work in 1.3.0.2, it uses LunaLua coding.
1.3.0.1 and 1.3.0.2 are two different things. 1.3.0.1 is the vanilla version, and 1.3.0.2 is the one that includes LunaLua.
You mean Lunaddl
No, he means LunaLUA. No one uses LunaDLL anymore.

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

Posted: Sun Mar 05, 2017 10:45 am
by AirSeus
Snessy the duck wrote:
IzIcy wrote:
Shin wrote:
1.3.0.1 and 1.3.0.2 are two different things. 1.3.0.1 is the vanilla version, and 1.3.0.2 is the one that includes LunaLua.
You mean Lunaddl
No, he means LunaLUA. No one uses LunaDLL anymore.
I meant something different to what you just said, but whatever.

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

Posted: Mon Mar 06, 2017 7:06 pm
by Sambo
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.

Also, Mario's shoes should be blue for a closer resemblance to the trophy you based it off of.