2,064 reputation
1323
bio website
location
age
visits member for 4 years
seen yesterday

1d
reviewed Approve suggested edit on Why does this geometry shader slow down my program so much?
Jul
17
reviewed Approve suggested edit on How should I structure my code to add enemies?
Jul
14
awarded  Yearling
Jun
26
comment Graphics programming replicating the transition from Chrono Trigger inside the gate
Check out this Wikipedia article: en.wikipedia.org/wiki/Mode_7
Jun
23
reviewed Approve suggested edit on How to Calculate Velocity in a 2D space game
Jun
4
reviewed Approve suggested edit on Deslect targeted enemy question. How to change back to original color
May
5
reviewed Approve suggested edit on DirectX 11 Updating Resolution
May
2
reviewed Approve suggested edit on How to change transform.position.x after a state is changed?
Apr
30
reviewed Reject suggested edit on Is chess-like AI really inapplicable in turn-based strategy games?
Mar
28
awarded  Good Answer
Mar
19
reviewed Approve suggested edit on Android AndEngine creating a body behind the sprite exactly
Jan
13
awarded  Custodian
Jan
13
reviewed Reject suggested edit on Bezier Curves for visual programming node connectors
Jan
13
reviewed Reject suggested edit on Bezier Curves for visual programming node connectors
Jul
14
awarded  Yearling
Jun
18
awarded  Caucus
Jun
18
awarded  Constituent
Apr
12
awarded  Informed
Dec
28
comment Why does this collision detection & resolution code only work for one side?
Your parentheses are unbalanced, and you incorporated the height into the bottom check, not the top check. Additionally the comparison operators are reversed on your top and bottom checks. Also, I was only assuming that your "position" origin is the top-left of the entity; it's up to you to verify that is the case. I strongly recommend sitting down with a piece of graph paper and a pencil and stepping through your code in your head.
Dec
25
comment Why does this collision detection & resolution code only work for one side?
@Fiona It would be a good idea to use e.g. a const variable to give a name to your magic width and height numbers, especially since you will need to use them in more than one place to fix this problem: you have the right idea for the response, but the detection test also needs to be edited similarly. Hint: "if ((x + 5) > tileBounds.Left)" ...