How to avoid the object at the next scene clicked

Hi! I’ve already replied to a similar topic. Here’s the link: