Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

Sidescroll Swimming?

4 replies · 6,568 views · Started 16 September 2014

As is, if Sideview Gravity is on and someone has flippers, they just fall down in water combos. Is there any way to script something so that the flippers allow the PC to swim up/down when sideview gravity is on?

It is possible. And I believe someone has done it... *walks away*

*walks back* Couldn't find it. Hmmmm...

Meepalasheep wrote:As is, if Sideview Gravity is on and someone has flippers, they just fall down in water combos. Is there any way to script something so that the flippers allow the PC to swim up/down when sideview gravity is on?

That'd be simple, but you'd need to use LTM (Link Tile Modifiers) and DrawCombo or DrawTile over Link's graphics to make it look like he's swimming. When Link leaves the ground in SideView (While Link->Z>0) he is "flipping" in the air, and if that action is prolonged, he just flips upside down and stays that way.
The rest is simple enough, just make a combo that is sideview water, then call an input, if(Link->InputR) for example:
if(Link->InputR && Screen->GetComboAt(Link->X,LinkY)==SIDEWATERCOMBO)//Any button and combo of your choice
{Link->Jump=SWIMAMOUNT;}

Put something like that in your global and it'd be good to go.