Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Player not taking damage when i-frames end
Post Flair (click to view more posts with a particular flair)
Post Body

So I am working on a 2D platformer, and I have a pretty standard damage/i-frame system. On Component Begin Overlap with something that deals damage, if you aren't invincible, take damage, become invincible, wait a few seconds, become hittable again. My issue comes from that last part, where you become hittable again. If you are touching/inside of something that deals damage (i.e. spikes) when this happens, you don't take damage, which makes sense since the damage code is only run when the player initially overlaps with something that deals damage. So I guess what I'm asking for is some way to make the player "re-check" or "re-trigger" their overlaps when their invincibility expires, though if y'all have any suggestions for better ways to do this I'd love to hear it.

Author
Account Strength
100%
Account Age
7 years
Verified Email
Yes
Verified Flair
No
Total Karma
9,899
Link Karma
5,373
Comment Karma
4,452
Profile updated: 1 day ago
Posts updated: 4 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 months ago