Hi, I need some help. I have a brick that is falling downwards (move command) and I want to shoot a bullet up from the bottom of the screen to intercept the falling brick. I can get the brick to fall and the bullet to shoot upwards (also a move command) simultaneously but I can't figure out how to detect whether they have collided or not. While the move handler is running I don't know how to check for an intersect.
Dennis
detecting collisions with move handler
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Heres an idea. Think it will work.
Code: Select all
if the location of image "Bullet" is within the rect of image "Brick" then answer "Hit!"