Hello,
trying to create a similar game mechanic as the portal games in which the character creates portals to reach their destination, in my game is similar if not the same the main character spawns a portal with a mouse click.
portaA -left mouse click
portalB -right mouse click
portalA goes to portalB
portalB goes to portaA
I have achieved this but the only problem is that it keeps spawning portals(objects) with each mouse click, how can I spawn the other portal(object) without keeping the previous one, or destroying the previous one.
Thanks for the time and help