Add Trigger Once with collision conditions. for further information:
https://wiki.gdevelop.io/gdevelop5/all-features/advanced-conditions/