God Mode (Gods Sphere)
Author: Josiah Jones
2/9/24
This week was pretty easy going for the most part. But I did have issues when implementing are cheat " God Mode". For this cheat I had to make it so we gained all are health back and couldn't be hurt anymore, the health part was easy but when making the sphere the problem came it was either blocking everything or wouldn't block anything at all.
To fix this problem I had to create a new collision layer with the default ignore and then label gods sphere with that layer. But this did not solve everything as it would ignore enemies so to solve that I set Gods sphere to block everything and set enemies to block gods sphere. I still had the problem with bullets if I set gods sphere to block bullets then player bullets wouldn't get through, if I set the bullets to block the gods sphere for some reason they would still just go through. I assumed this happened because bullets were made with overlap collision. So in the I just kept them to ignore and then in the enemy bullets blueprints I would cast to check if it overlapped with Gods sphere and if true it would just destroy the bullets, if not it would continue on.
'GodSphere' Collision layer:



Comments
Post a Comment