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.

Camera and Scripts

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
t5yvxc
Member
Member
Posts: 15
Joined: November 19th, 2009, 4:03 pm
Name: Tonio
IRC Username: itachi2658

Camera and Scripts

Post by t5yvxc »

I have 3 questions.
Is it possible to change camera control from mouse to (a=left, w=up, s=down, d=right), and if so how?

After making a map, where do I start working on the game, like is there a script editor somewhere?

And, Is it possible to teleport from 1 map, to another(like too large of maps might use a lot of ram)?



Thanks in advance.
siimvuss
Member
Member
Posts: 410
Joined: August 19th, 2009, 1:27 am
Name: S
IRC Username: S
Location: Estonia

Re: Camera and Scripts

Post by siimvuss »

1. I dont know
2. You mean like making characters talk and give you guests etc.? If you mean that then you have to edit your map cfg. You can do that with notepad.
3. Yes it is it can be done via editing your map cfg.
t5yvxc
Member
Member
Posts: 15
Joined: November 19th, 2009, 4:03 pm
Name: Tonio
IRC Username: itachi2658

Re: Camera and Scripts

Post by t5yvxc »

could someone tell me how to teleport from one map to another, exactly how i get into the cfg and where and what in the code do I add to make it teleport to another map.
User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san

Re: Camera and Scripts

Post by daniel_san »

When you save your map, it is saved to the /packages/base directory. It saves both a mapname.ogz file(map file) and mapname-art.cfg file (for scripting/art content).
It is fairly simple to teleport from one map to another in fps mode.
First place a map model and set the trigger type to 1 or above(3rd varible)
Also you may want to change the 4th varibale on the model to level_trigger_1
Save your map and then either create a file named mapname.cfg and paste said below line into it or

paste something like this under //game data in your maps art.cfg
be forewarned though when you save your map again as the same name, the art cfg will overwrite anything you've scripted.
So you're kind of better off making a seperate cfg for scripted events.

level_trigger_1 = [echo "Congrats you beat the level!!!"; sleep 8000 [map village]]

save the art.cfg and then reload your map.
Make sure you load your map in sp(single player mode)
by going into the console and typing /sp mapname


-daniel_san
t5yvxc
Member
Member
Posts: 15
Joined: November 19th, 2009, 4:03 pm
Name: Tonio
IRC Username: itachi2658

Re: Camera and Scripts

Post by t5yvxc »

thanks, can you tell me how to change the trigger type and level trigger?
User avatar
daniel_san
Moderator
Moderator
Posts: 84
Joined: September 8th, 2009, 11:03 pm
Name: Dan
IRC Username: daniel_san

Re: Camera and Scripts

Post by daniel_san »

you can either select the ent/map model and press period(.)
and you'll see all the variables come up in the bottom left hand corner of your screen.
from there just edit the appropriate numbers using your arrow keys.
or the easier way, you can hold 1-5 and scroll your mouse wheel with ent/object selected.
take care.

-daniel_san
t5yvxc
Member
Member
Posts: 15
Joined: November 19th, 2009, 4:03 pm
Name: Tonio
IRC Username: itachi2658

Re: Camera and Scripts

Post by t5yvxc »

thanks i got it teleport. Sorry for so many questions im still a newbie, but how do I get it to teleport me to another map and spawn where i want him to. I have a town where theres 2 ways to get into the next map and I was wondering is it possible to make entrance "A" teleport at next map "X"spawn point "A", and entrance "B" teleport to same map "X" and spawn at point "B".
t5yvxc
Member
Member
Posts: 15
Joined: November 19th, 2009, 4:03 pm
Name: Tonio
IRC Username: itachi2658

Re: Camera and Scripts

Post by t5yvxc »

bump, does anyone know?
Locked