06-15-2019, 10:15 PM (This post was last modified: 06-15-2019, 10:18 PM by The_Hari.)
Got some time after all and it's way too hot to go outside anyway : (
Here is Banter, bandit the batter, quite horrible name.
I just recently learned about baseball/bat custom hit sound, found it some thread around here and kinda wanted to use it for something. It also looks like like it's not only id 100 and 121 specified thing, as here I'm using different id for baseballs. Maybe it's about id 100 and type 4 items, didn't test it though.
Either way, Banter will spawn with baseball bat in his hands, he's using the other hand compared to regular bantid to hold it, adn get new one whenever he's getting knocked out. With his free hand he can throw baseballs while jumping or runnning, so (>>)+A J+(>)+A
You can also get quite a few baseballs at once by pressing DJA
Here I got inspired by Lauli's old project - Baseball Crowd
Those baseballs can't be picked up by anyone, Banter including and will disappear after few seconds. But they jump around Banter while his standing, or pressing attack, so he can send them flying with his bat. There is also random chance to hit ball so hard, it's gonna catch on fire and fly at high speed dealing lots of damage. Won't burn opponents though, let's be realistic.
No download link for now, instead I'm open for suggestions about more moves or other changes.
Regarding the baseball bat system, the batting ability is specific to id 100, under the following conditions:
the bat is held in wpoint, and then swung with itr kind 5
the object being hit only needs to be a type 4(baseball) or 6(drink), no specific id required.
There is a way to solve the problem of infinitely spawning real bats, and I think you already figured it out, but I'll specify my solution anyway: make sure you use a wpoint with a very high x-coordinate(more than 3200 which is the width of Lion Forest, the longest map) during the picked_caught and falling frames. This way, whenever Banter is forced to drop his weapon, he will do so by simply dropping them offscreen and thus deleting the weapon.
While you are at it, I would suggest fixing the bug where rolling into a wall with a bat tends to cause the bat to magically disappear. This happens because the bat is held in a position at or below y: 0 when the weapon itself went past the map boundary. Either raise the wpoint y-coordinate, or change cover: 1 to cover: 0 (same as Template). This works because Marti made cover: 1 work by shifting the z-axis of the weapon up by 2px, and then dropped the y-axis of the weapon by 2px to compensate, and this coincidentally caused the bat to be below the ground during rolling.
It'd be nice if Banter is still able to pick up milks to drink in Stage though, so having the option to not hold the bat temporarily would be great.
No idea how the chance to flaming baseball works, but my guess is that it is a custom type 1 baseball rather than a type 4(hence the weird gravity too), and then you use the fact that hitting a weapon sends it to a random frame 0-15 to make it happen.
From the looks of it, Banter will actually despawn the bat in order to opoint kind 2 the baseball before throwing. That's not actually necessary. Just directly spawn the baseball the same way Henry/Rudolf/Hunter do, and make sure the frame it goes to has state 1002 such as frame 40.
Unfortunately I can't think of a way to make the baseball able to fly along z-axis after being struck.
(06-16-2019, 01:09 AM)STM1993 Wrote: There is a way to solve the problem of infinitely spawning real bats, and I think you already figured it out, but I'll specify my solution anyway: make sure you use a wpoint with a very high x-coordinate(more than 3200 which is the width of Lion Forest, the longest map) during the picked_caught and falling frames. This way, whenever Banter is forced to drop his weapon, he will do so by simply dropping them offscreen and thus deleting the weapon.
I did not and this is simple and brilliant, thanks!
(06-16-2019, 01:09 AM)STM1993 Wrote: While you are at it, I would suggest fixing the bug where rolling into a wall with a bat tends to cause the bat to magically disappear. This happens because the bat is held in a position at or below y: 0 when the weapon itself went past the map boundary. Either raise the wpoint y-coordinate, or change cover: 1 to cover: 0 (same as Template). This works because Marti made cover: 1 work by shifting the z-axis of the weapon up by 2px, and then dropped the y-axis of the weapon by 2px to compensate, and this coincidentally caused the bat to be below the ground during rolling.
Cool thing to know, already done it, as I set cover 0 to make it looks more, like he holds bad in different hand.
(06-16-2019, 01:09 AM)STM1993 Wrote: It'd be nice if Banter is still able to pick up milks to drink in Stage though, so having the option to not hold the bat temporarily would be great.
Probably not gonna happen. But while we're at it, some healing - baseball theme new move could be added.
I can still make him pick up heavy weapons. Oh man, heavy milk bottle would be nice addition, hah.
(06-16-2019, 01:09 AM)STM1993 Wrote: No idea how the chance to flaming baseball works, but my guess is that it is a custom type 1 baseball rather than a type 4(hence the weird gravity too), and then you use the fact that hitting a weapon sends it to a random frame 0-15 to make it happen.
Wouldnt' that make them randomly go to flaming frames while bouncing?
But true, frames 0 - 15 were used. Every 5th frame opoint an invisible state 18 type 3 for a short while, to avoid smoke. Banter has special itr in his weapon_attack frames and if he hits the type 3, it goes to rebounding frames, spawning flaming ball. Actually improved it already and added bdefend 100 itr to all of its frames, to destroy the original normal ball.
(06-16-2019, 01:09 AM)STM1993 Wrote: From the looks of it, Banter will actually despawn the bat in order to opoint kind 2 the baseball before throwing. That's not actually necessary. Just directly spawn the baseball the same way Henry/Rudolf/Hunter do, and make sure the frame it goes to has state 1002 such as frame 40.
That's how it's done. He doesnt't ever spawn baseballs in hand, the bat on the gif just hides behind him.
(06-16-2019, 01:09 AM)STM1993 Wrote: Unfortunately I can't think of a way to make the baseball able to fly along z-axis after being struck.
Yeah, no way.
(06-17-2019, 06:01 AM)Cabba Wrote: how about making him do a special action when using the bat? if it is possible
something similar to this
I prefer not to make new sprites if original ones works, but this swing effect would be nice addition to what's already there.
(06-30-2019, 08:41 AM)Cabba Wrote: when do we get to try him?
Good question. But he's still alive and there is a little update.
I didn't play much games, but just yesterday remembered quite a cool one - OFF by Mortis Ghost, so here is alternative skin for Banter, based on protagonist of said game.
Added fake baseball bat to falling and caught frames
The reason why I didn't finish him yet, is some weird behaviour while deleting weapon for fire ball. I'll try to polish the data and upload him for some help on how to fix it.
I think I fixed him as much as I could, there is still some werid baseball behaviour while dash/jump hitting it, but for some reason it happens a lot less than before.
Increased contrast for second skin, guess he looks much batter, ha.