Help with mouseRealeased()
in
Programming Questions
•
1 year ago
Hi,
So Im try to get my program to drop a ball into a different quadrant when the ball is dragged and is released in that quadrant, but when i use && thing. its not working.
void mouseReleased() {
if( xpos= 200 && ypos< 400 )
{
xpos=300;
ypos=100;
} else {
xpos=100;
ypos=100;
}
I'm using an array OOP thing.
any help please?
So Im try to get my program to drop a ball into a different quadrant when the ball is dragged and is released in that quadrant, but when i use && thing. its not working.
void mouseReleased() {
if( xpos= 200 && ypos< 400 )
{
xpos=300;
ypos=100;
} else {
xpos=100;
ypos=100;
}
I'm using an array OOP thing.
any help please?
1