Thank you dop2000
Whenever play collides with the portal it starts again with the same layout.
I do have a doubt on "left(Target_door_GlobalV, len(Target_door_GlobalV)-1)"
what are left and len? what thing I should have to change for my platformer?
Please help.
See this post:
https://www.construct.net/en/forum/construct-3/how-do-i-8/change-spawn-points-based-145773
I made a demo:
https://www.dropbox.com/s/oo4bpeo5gujxbzz/PortalSystem.c3p?dl=0