Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

portals

Learn more on how to use Sandbox, or submit your own tutorials or resources.
TheGrimreaper
Member
Member
Posts: 5
Joined: May 20th, 2010, 7:04 am

portals

Post by TheGrimreaper »

i want to say excuse my writing from the start of this thread
my question is there a way to create portals that lead to another map like on lets say legend of zelda when you go from the field to a village it loads a different map for the village to save strain on the memory also when you go into a dungeon it loads the map for the dungeon only. Also when you go through a door from point A you end up on the other side of point A in a new map area. So to sum it up you walk through the door in point A on one map you end up in the other map on point A in the other smaller map to save strain on the memory you should figure out what im talking about hopefully also if theres another thread talking about this same subject sorry but i couldn't find it.
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: portals

Post by arcones »

What your talking about is teleporting from one map to another. And fortunately, it is very much possible! :)
Here's a bit of code I took from a Support topic:

Code: Select all

level_trigger_2 = [echo "*message*"; endsp; sleep 1000 [map *name*]]
When you open your map in Sandbox, place this in the map config, by pressing F6. Then Create a mapmodel with the level trigger 2. Once you insert the map name and the message, it'll transport you from the current map, to the map of your choice!

Hope that helps!
Arc :geek:

P.S. Next time please post your support question in the Sandbox Support Section. Thanks ;)
Image
Want a user bar like this one? PM Leo!
TheGrimreaper
Member
Member
Posts: 5
Joined: May 20th, 2010, 7:04 am

Re: portals

Post by TheGrimreaper »

thanks I haven't tried it yet but from i what i got from what you wrote it seems like what i needed.
TheGrimreaper
Member
Member
Posts: 5
Joined: May 20th, 2010, 7:04 am

Re: portals

Post by TheGrimreaper »

hmm the code doesn't work exactly right when i use it instead of loading the map i said to it just loads a blank map or a new map
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: portals

Post by GR1M »

Code: Select all

level_trigger_2 = [echo "*message*"; endsp; sleep 1000 [map *name*]]
When your placing the map name you want to teleport to erase the "*" so it just looks like this "[map forest]",
This also counts for the message "[echo "Hi there!"]. I think that was your problem.

Gr1m :twisted:
Image
Want a user bar like this one? PM Leo
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: portals

Post by Leo_V117 »

I find it amusing that. The following code:

Code: Select all

    level_trigger_2 = [echo "*message*"; endsp; sleep 1000 [map *name*]]
was mine... You can also set a different trigger as the map changeing one. Trigger 2 is the "Progress" trigger, Trigger 1 is the "Return" Trigger.
User avatar
GR1M
Support Team
Support Team
Posts: 1305
Joined: August 22nd, 2009, 4:35 pm
Name: Luke
IRC Username: Gr1m
Location: Texas
Contact:

Re: portals

Post by GR1M »

Very nice Leo.
Image
Want a user bar like this one? PM Leo
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: portals

Post by Leo_V117 »

"Return" trigger is used for "Returning" to a previous map. "Progress" trigger is for "Progressing" to another map, very much like Zelda, from field to Village, and Village to field. "Progress" from Field, "Return" from Village. That good for you?

Code: Select all

    level_trigger_2 = [echo "You head to the Village"; endsp; sleep 1000 [map Village_2]]
"Progress"

Code: Select all

    level_trigger_1 = [echo "You head to the Field"; endsp; sleep 1000 [map Field]]
"Return"
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: portals

Post by arcones »

I hand picked your code Leo, as I couldn't remember how Map teleporting worked :P
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: portals

Post by Leo_V117 »

Okay. But theres more information about it.

You can actually have 3 triggers for it. The third is the "Pass" trigger... Works a little like this:

Code: Select all

        level_trigger_3 = [echo "You Head to the Temple"; endsp; sleep 1000 [map Temple]]
"Pass"
Post Reply