Page 1 of 1

You can try out Swimming!

PostPosted: 30 May 2020, 11:03
by DevonST
Swimming got merged into master.
Download the latest nightly or compile from source. You can find a test level in Contrib levels.

Report bugs to https://github.com/SuperTux/supertux/issues

Re: You can try out Swimming!

PostPosted: 30 May 2020, 11:54
by KiyanTheBluePenguin
Wow!

I Didn't Try It But Now It Exists!
Cool!

Well, I Still Have One Question:

How Will This Affect Levels?

Just Wanting To Know.

Re: You can try out Swimming!

PostPosted: 01 Jun 2020, 05:33
by Worldblender
Well, this swimming feature looks like it's brand new, though I haven't tried it yet as of this writing. What method of control is used for swimming, I wonder?

Re: You can try out Swimming!

PostPosted: 01 Jun 2020, 07:50
by DevonST
What method of control is used for swimming?

If Tux jumps into water, he automatically starts swimming. If you press nothing, Tux will slowly descend. If Tux touches ground underwater, he stands up and you can walk normally. Leaving the ground makes Tux swim again. While swimming, you can use the direction keys to move. If you stop holding a direction, Tux decelerates (as he does on ice).

What makes swimming special is that you can press JUMP to get a boost in the direction Tux is facing. Spamming the JUMP key allows you to swim gain hyper speed. Jumping out of water like a dolphin is also very fun!

Re: You can try out Swimming!

PostPosted: 01 Jun 2020, 07:56
by Worldblender
DevonST {l Wrote}:
What method of control is used for swimming?

If Tux jumps into water, he automatically starts swimming. If you press nothing, Tux will slowly descend. If Tux touches ground underwater, he stands up and you can walk normally. Leaving the ground makes Tux swim again. While swimming, you can use the direction keys to move. If you stop holding a direction, Tux decelerates (as he does on ice).

What makes swimming special is that you can press JUMP to get a boost in the direction Tux is facing. Spamming the JUMP key allows you to swim gain hyper speed. Jumping out of water like a dolphin is also very fun!


All that sounds exciting. Are there any levels (or there will be) where I can try this swimming feature, or will I have to make my own using the level editor?

Re: You can try out Swimming!

PostPosted: 01 Jun 2020, 10:40
by KiyanTheBluePenguin
Worldblender {l Wrote}:
DevonST {l Wrote}:
What method of control is used for swimming?

If Tux jumps into water, he automatically starts swimming. If you press nothing, Tux will slowly descend. If Tux touches ground underwater, he stands up and you can walk normally. Leaving the ground makes Tux swim again. While swimming, you can use the direction keys to move. If you stop holding a direction, Tux decelerates (as he does on ice).

What makes swimming special is that you can press JUMP to get a boost in the direction Tux is facing. Spamming the JUMP key allows you to swim gain hyper speed. Jumping out of water like a dolphin is also very fun!


All that sounds exciting. Are there any levels (or there will be) where I can try this swimming feature, or will I have to make my own using the level editor?


Well The Top Post Did Say That There Is A Test Level In Contrib Levels.

Re: You can try out Swimming!

PostPosted: 04 Jun 2020, 02:40
by divVerent
AWESOME! Tried it out by making an all-water level. Posted the level here: https://forum.freegamedev.net/viewtopic ... 69&t=14011

First my complaints:

- It's weird how Tux suddenly turns around when the swim angle changes. The graphics really could be better. I do like this side view though, the swimming IS very penguin-like - just the angle flipping is odd. I wonder if swimming up/down should rather view Tux from behind (and look symmetrical), so that right...up...left becomes a smooth transition without any flipping.
- Swimming and jumping behaves weird at times. E.g. when walking, it's very hard to get to a state where you're almost at ground level but swimming sideways.

Then my praise:

- Plays really well. Easy to control.
- I love the accelerate-by-jump-button feature. Gives it an unique touch. Speed maybe should be limited more, but in general this is great.
- I love even more that fast-swimming can activate blocks in any direction. PLEASE KEEP! Gives small Tux buttstomp-like abilities.

Suggestions for further enhancement:

- Would be cool if there were a more direct way to make an all-water level than having a solid tilemap filled entirely with water tiles. Would also be nice to have water backgrounds, with animated fish on them or the like.
- Can we have a 3/4 time signature (waltz) music track for water level usage? I kinda like the general sound of antarctic/jewels.ogg for water level usage, but I guess an unique composition with a similar feel and waltz-like would go a lot better.

Re: You can try out Swimming!

PostPosted: 04 Jun 2020, 10:10
by KiyanTheBluePenguin
My Only Problem With This Is,
That Some Levels Could Be Baddly
Affected,
And It Ruins The Challenge.

So, That's Just My Complaint.

Re: You can try out Swimming!

PostPosted: 04 Jun 2020, 11:24
by divVerent
I guess levels that lose their point over this should change their water tiles to lava tiles. Or just holes to fall in, maybe just darkened at the bottom.

Re: You can try out Swimming!

PostPosted: 05 Jun 2020, 03:50
by E200
I think fire and ice balls should be fired in the direction Tux is swimming towards.

It is a little clunky swimming at the surface of water.

Re: You can try out Swimming!

PostPosted: 05 Jun 2020, 04:14
by divVerent
Quickly slapped this together as a starting point for underwater level music (based on SuperTux theme, transformed the way a certain other game solved this problem): http://rm.cloudns.org/~xonotic/temp/supertux-water.ogg (https://github.com/divVerent/divTrololo ... lolo/music)

Re: You can try out Swimming!

PostPosted: 05 Jun 2020, 18:03
by Yona-TYT
Wow, I am very happy to see that this is progressing, I will try as soon as I can!. :D :D :D

This is very nice! :cool:

Regards!. :)

Re: You can try out Swimming!

PostPosted: 11 Jun 2020, 01:27
by theXman63
Geez. Thank god it is now here!

Re: You can try out Swimming!

PostPosted: 11 Jun 2020, 17:51
by KiyanTheBluePenguin
BTW,
This Feature Has Been Not Included For
Too Long,
I Guess It Didn't Go Into The Mind Of The Creators,
Until It Did...

Well Its Here Now.

Re: You can try out Swimming!

PostPosted: 11 Jun 2020, 20:40
by Yona-TYT
KiyanTheBluePenguin {l Wrote}:BTW,
This Feature Has Been Not Included For
Too Long,
I Guess It Didn't Go Into The Mind Of The Creators,
Until It Did...

Well Its Here Now.


About 2 years ago I asked about this, the answer was "it flies in about 5 years", but it takes less hehehe. :D

Re: You can try out Swimming!

PostPosted: 12 Jun 2020, 02:03
by theXman63
Also, some levels are now broken because of this new ability.

For example, in the level, lava lake from Hume's rainbow cave, you can cheat by spamming the jump key while invincible in the lava to make it easier

Re: You can try out Swimming!

PostPosted: 12 Jun 2020, 15:48
by KiyanTheBluePenguin
theXman63 {l Wrote}:Also, some levels are now broken because of this new ability.

For example, in the level, lava lake from Hume's rainbow cave, you can cheat by spamming the jump key while invincible in the lava to make it easier


This Is What I Meant.

Re: You can try out Swimming!

PostPosted: 12 Jun 2020, 22:21
by divVerent
Yeah, clearly some levels will need updating. I personally don't even like that one can swim in lava at all. Not that one should drown there either though... if it were real lava, it probably should be instant death.

Re: You can try out Swimming!

PostPosted: 12 Jun 2020, 23:07
by KiyanTheBluePenguin
divVerent {l Wrote}:Yeah, clearly some levels will need updating. I personally don't even like that one can swim in lava at all. Not that one should drown there either though... if it were real lava, it probably should be instant death.


It Should Be Removed From Lava,
Because WHAT PENGUIN SWIMS IN LAVA?
ANSWER:
PROBALY NONE.
Ok,
This Is Isn't Just Me I Guess...
Huh.

Re: You can try out Swimming!

PostPosted: 13 Jun 2020, 00:31
by Yona-TYT
The most reasonable thing is "death to the penguin" when touching lava (as Mario forever does), regardless of whether it is large or uses hat.

Re: You can try out Swimming!

PostPosted: 14 Jun 2020, 03:11
by divVerent
If we make lava instant death, the next question is, should this even apply during invincibility frames?

In particular the Mega Man game series said no to that, and allowed Mega Man to touch spikes after touching an enemy, but not when unhurt. Very odd. But understandable as having some hurt triggers work despite invincibility frames is an odd special case, coding wise.

Re: You can try out Swimming!

PostPosted: 14 Jun 2020, 09:54
by KiyanTheBluePenguin
divVerent {l Wrote}:If we make lava instant death, the next question is, should this even apply during invincibility frames?

In particular the Mega Man game series said no to that, and allowed Mega Man to touch spikes after touching an enemy, but not when unhurt. Very odd. But understandable as having some hurt triggers work despite invincibility frames is an odd special case, coding wise.


Yeah,
Invincibility frames should be what they are telling.
They make You invincible against everything,
so lava counts too.

Re: You can try out Swimming!

PostPosted: 14 Jun 2020, 16:38
by Yona-TYT
KiyanTheBluePenguin {l Wrote}:
divVerent {l Wrote}:If we make lava instant death, the next question is, should this even apply during invincibility frames?

In particular the Mega Man game series said no to that, and allowed Mega Man to touch spikes after touching an enemy, but not when unhurt. Very odd. But understandable as having some hurt triggers work despite invincibility frames is an odd special case, coding wise.


Yeah,
Invincibility frames should be what they are telling.
They make You invincible against everything,
so lava counts too.

It seems reasonable to me.

Re: You can try out Swimming!

PostPosted: 15 Jun 2020, 19:24
by divVerent
So should invincibility frames make you invincible against getting squished or against falling into the endless void?

In most games, invincibility frames (or stars, for that matter) do not help against instant death, with the Mega Man series being the exception.