Motion detection one node by another node

Motion detection one node by another node
0

#1

A ball is moving randomly on canvas and i want to caught ball move through a another sprite .like if ball goes up then sprite moveup and if ball down then sprite move down? How can impliment it.?