Page 1 of 1

[NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Sat Jul 27, 2019 5:34 pm
by 8lue Storm
because there was a request in graphic request

gif
Spoiler: show
Image
download (comes as a test level and its folder)
UPDATE July 30th: the platform speed was slow so I multiplied it by 1.5.
UPDATE August 1st: the platform no longer moves while the player is powering down or powering up.
Spoiler: show
previous releases:
Spoiler: show
Pretty straightforward: place the platform and the hammer bro. You can also copypaste the setup from the test level so that, in-game, the hammer bro doesn't wander off the center of the platform by a few pixels.
have fun!

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Tue Jul 30, 2019 12:24 pm
by 8lue Storm
Due to SMW players thinking the platform was slow, I updated the download with a faster one. (x1.5 speed)

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Thu Aug 01, 2019 8:46 pm
by 8lue Storm
While I was playing SMBXFanBoi's level which included this NPC, I found a small, irritating misbehavior, which was that the platform kept moving while the player was powering down or powering up. As this post is being made, the download has been updated (and now includes the previous versions because why not).

comparison gifs:
before
Spoiler: show
Image
after
Spoiler: show
Image
EDIT: WOOPS! A second later I realized that there was an unnecessary function printing the powering-up/down timer. Fixed.

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Sat Aug 03, 2019 10:42 pm
by UlticraftMTT
It's great, but originally in Super Mario World, you could hit the bottom of the block to defeat the AFH Bro.

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Sun Aug 04, 2019 1:21 pm
by 8lue Storm
UlticraftMTT wrote:
Sat Aug 03, 2019 10:42 pm
It's great, but originally in Super Mario World, you could hit the bottom of the block to defeat the AFH Bro.
I felt that missing too, however, I don't really have much of an idea on how to implement that. So, until I do, no bonking. :(

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Mon Aug 19, 2019 9:48 pm
by MegaDood
8lue Storm wrote:
Sun Aug 04, 2019 1:21 pm
UlticraftMTT wrote:
Sat Aug 03, 2019 10:42 pm
It's great, but originally in Super Mario World, you could hit the bottom of the block to defeat the AFH Bro.
I felt that missing too, however, I don't really have much of an idea on how to implement that. So, until I do, no bonking. :(
You could probably ask on the Codehaus Discord server. I'm sure they would be able to help.

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Tue Aug 20, 2019 1:57 am
by PROX
you can code a block I'm pretty sure. The npc itself could just be the hammer bro itself

Re: [NPC Pack] Amazing Flyin' Hammer Bros.

Posted: Tue Aug 20, 2019 7:41 am
by Enjl
PROX wrote:
Tue Aug 20, 2019 1:57 am
you can code a block I'm pretty sure. The npc itself could just be the hammer bro itself
It's very tricky. Blocks in the engine were never designed to move, and the platform acts like 2 blocks despite being a single sprite. It's probably easier to keep it an NPC and re-code the bump event by drawing a custom bump and detecting it manually. NPCs on the platform must be harmed with HARM_TYPE_FROMBELOW once a bump that affects them is detected.