So, I have a problem. I want to make a game where stomping deals damage. But I don’t have a way to do that, because I tried using zones where if a person is in the zone above someone else, damage is dealt. It didn’t work. So now, I want to try something else.
Also, if create a system for it, we could probably try to find a way to make it memory-efficient.
If a player’s y position is lower than it was 0.2 (any small number) seconds ago, set a variable called fall_start to player pos. Then continue checking if the player’s y pos i lower than it was 0.2 secodns ago until it isn’t true. Then compare the new position to the old position to determine how much damage to do
layering dosent affect mechanics it only affects appearence
what you would need here (for platformer) would be
a fall damage and pseudo tag system both of which i think you would find very complicated
so i suggest using an overlay button activating a tag zone for a second then turning it off after 1 second or less
it’s much simpler and within less memory consuming because fall dmg and pseudo tag system combined together takes a decent amount of memory and effort
(modified ofc)