Having trouble with multiple or's

I am having trouble, which I think is being caused from my OR statements not being valid. What I am trying to accomplish in english would be, if down_p = true or right_p = true or left_p = true and g_up = true. So like any of them and g_up = true.
this is my code

1
2
3
4
5
6
7
 if (down_p == true || left_p == true || right_p == true && g_up == true){
    	down_p = false;
    	left_p = false;
    	right_p = false;
    	up_p = false;
    	game_on = false;
    }
if ( (down_p || left_p ||right_p) && g_up ) {
Topic archived. No new replies allowed.