[Suggestion] Sticky terrain flag

6 replies [Last post]
KoBeWi
KoBeWi's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 2010-12-25
Posts: 564

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 3 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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 3 weeks 4 days ago. Offline
Joined: 2012-06-20
Posts: 1301

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

KoBeWi
KoBeWi's picture
User offline. Last seen 1 week 4 days ago. Offline
Joined: 2010-12-25
Posts: 564

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 3 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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 1 week 4 days ago. Offline
Joined: 2010-12-25
Posts: 564

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 3 weeks 2 days ago. Offline
Joined: 2009-01-28
Posts: 1861

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

User login

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