how do you have have something happen between two functions?

B

bimblor

Guest
sorry if i'm doing something wrong, this is my first post.

if image_xscale < 2 image_xscale > 2.5
{
if (place_meeting(x,y,object0)) {

instance_destroy(object0)


}
}

im trying to make it so object0 is destroyed when colliding with object1 between < 2 and > 2.5.
 
For one, you're only performing one check as you should be using && to make both comparisons.

Two, how can the scale be below 2 and above 2.5 at the same time? Surely you mean for those expressions to be flipped.
 
B

bimblor

Guest
For one, you're only performing one check as you should be using && to make both comparisons.

Two, how can the scale be below 2 and above 2.5 at the same time? Surely you mean for those expressions to be flipped.
oops, you're right, that was the problem the whole time. sorry for the unnecessary thread.
 
Top