I can’t figure out how to make a movie clip move out of the way when your keyboard controled character is over another movie clip.
Here is the code i tried:
if ((_root.button.hitTest(_x, _y+radius, true)) or (_root.button.hitTest(_x, _y-radius, true)) or (_root.button.hitTest(_x+radius, _y, true)) or (_root.button.hitTest(_x-radius, _y, true))) {
gate2._y -= 3
}
button and gate2 are my instance names.