• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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