Hello!
I am working on a MOBA now and just added bushes or gras where you can hide.
Those grasses are made off like 5 grass tiles, but is there a way I can combine them together? Like tag all 5 and select something like "combine" ? (As in Gimp2 or PS)
It would save me some memory I guess since the object is still the same as the single ones. But when I enter a bush now, only the parts I collision with are changes to opacity 25 (so I have vision in the bush) for me. After that all the bush tiles are visible as long as I am in the complete bush-part. When I leave the bush, all the bush tiles are back to opacity 100.
When I could combine those tiles, it would be possible for them to behave as they are 1 bush all together, rather than 5 different.
Since I want some more bushes with different sizes in my game, I had to do way more coding + sprites for each bush <.<
P.S. The game is splitscreen and the bushes behave different for both players. So when player 1 enters a bush, the bush is still at opacity 100 for player 2, just for make some clarity. I also want to add a online multiplayer with photon later so don't complain on how useless bushes are in 1vs1 splitscreen xD