[Suggestion] Sticky terrain flag

6 replies [Last post]
KoBeWi
KoBeWi's picture
User offline. Last seen 10 hours 41 sec ago. Offline
Joined: 2010-12-25
Posts: 547

This could've been brought up before, but even so, it was probably 10 years ago or so and couldn't find the topic.

Anyways, lfGlue. Could add some variety to gameplay as another terrain type, that would make stuff stick. It would be represented by yellow color on masks.

Behavior:
-reduce hedgehog speed and jump power to 1/2 (or 1/3, or disable jumps at all?)
-any weapon falling on it doesn't bounce at all; it's like everything becomes a sticky mine (imagine a melon glued from underneath)
-I guess that's all, not much philosophy to it

As another suggestion, would be nice if this was the anti-portal terrain. Bouncy terrain could be useful to, like, bounce portals. Right now it blocks them. Glue terrain couldn't have interesting interactions with portals anyways, so it could block them instead of bouncy one. Also portal blockers would cause less problems this way.

I think that's all. Would be nice to also have it as a flag for themes (similar to ice). I could use it for Beehive.

nemo
nemo's picture
User offline. Last seen 2 days 8 hours ago. Offline
Joined: 2009-01-28
Posts: 1839

Yeah, the only reason bounce is the anti-portal terrain is someone wanted an anti-portal terrain and we had to come up with some terrain type for it, and bounce was the most popular. Also apparently bounce liquid in portal 2 doesn't allow portals.

But making glue the anti-portal terrain could be even more annoying if a poor hog was stuck on it barely able to hop about.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Wuzzy
Wuzzy's picture
User offline. Last seen 1 day 12 hours ago. Offline
Joined: 2012-06-20
Posts: 1263

Adding a new land flag is a HUGE deal and should be done with care.

And when land is both glued and icy, what would it mean?

What if is land is both glued and bouncy?

The more important question is: Where shall it actually be used?
We would need some content in the game that uses this, otherwise it'll be pointless anyway.

Hi, I am a Hedgewars developer. Smile I accept personal donations in bitcoin. Heart 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH

KoBeWi
KoBeWi's picture
User offline. Last seen 10 hours 41 sec ago. Offline
Joined: 2010-12-25
Posts: 547

Quote:
And when land is both glued and icy, what would it mean?
Wait, land can already have 2 flags? Like icy and bouncy?

Quote:
The more important question is: Where shall it actually be used?
Glue bomb? Sticky girder tool? ¯\_(ツ)_/¯

And of course on maps/themes (and if it becomes a theme option, my theme using it will eventually appear)

nemo
nemo's picture
User offline. Last seen 2 days 8 hours ago. Offline
Joined: 2009-01-28
Posts: 1839

WRT land being both icy and bouncy. yes. the flags can be stacked. You can have indestructible bouncy ice.

The question is how to access it. Well, from lua:
https://hedgewars.org/kb/LuaGameplay
PlaceSprite (search for it since the bbcode linking was being dumb about the [ in the link and I'm too lazy to fix it)

The masks do *NOT* support this 'cause the colour situation would be getting a bit too convoluted at that point.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

KoBeWi
KoBeWi's picture
User offline. Last seen 10 hours 41 sec ago. Offline
Joined: 2010-12-25
Posts: 547

Huh. Then speed and jump reduction could be two separate properties. If land is both sticky and slippery, your hogs would walk with normal speed and wouldn't slide, but still had hindered jumps. If the land was both sticky and bouncy, your hogs would be slower, but they could jump normally and the terrain would bounce things like normal terrain. Sticky + bouncy + slippery would act like normal terrain.

Oh, and for one more quirk, sticky terrain could prevent cake from moving.

nemo
nemo's picture
User offline. Last seen 2 days 8 hours ago. Offline
Joined: 2009-01-28
Posts: 1839

Yes, in practice right now bouncy land modifies Elasticity while Ice modifies Friction.
Sticky, if it was a thing, would presumably modify both, but also require a special case in the hog jump code to reduce upwards force, as well as special casing in object collision to nullify gravity.
... and maybe a sprite overlay of glue fibres on the idle objects or something if it could be made non-ugly.

And yeah cake movement would be another special case.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Copyright © 2004-2021 Hedgewars Project. All rights reserved. [ contact ]