question-circle Question about teleporters

  • Micman
  • Micman's Avatar Topic Author
  • Offline
  • New Marbler
  • New Marbler
  • Posts: 1
  • Thank you received: 0
24 Dec 2016 07:54 #1
I was wondering if it were possible to change the direction your marble is facing when you enter a teleporter? Also, could it be possible to maintain speed through a teleporter?

Please Log in or Create an account to join the conversation.

  • Three
  • Three's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • level designer
  • Posts: 468
  • Thank you received: 349
25 Dec 2016 04:37 #2
Both of these features will be in PlatinumQuest, but they probably won't be included in MBP before then.

Follow me on twitter at @threefolder

Please Log in or Create an account to join the conversation.

  • Weather
  • Weather's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
  • Posts: 487
  • Thank you received: 264
25 Dec 2016 11:58 #3
This is a trigger from MBPU that people can use as long as they give credit to HiGuy and Whirligig. It doesn't allow you to change the camera angle and teleport the marble to a specific point, but it does keep the marble's velocity and camera angle. Just paste the code into the top of the mis file (completely above the "OBJECT WRITE BEGIN" line) with a text editor and it will appear in the trigger list.
Code:
// Seamless motion trigger from the Sandbox PowerPack for MBPU by HiGuy // Dynamic field: offset // - The relative position to teleport the marble to in X Y Z datablock TriggerData(SeamlessMotionTrigger) { tickPeriodMS = 100; }; function SeamlessMotionTrigger::onAdd(%this, %trigger) { if (%trigger.offset $= "") { %trigger.offset = "0 0 0"; } } function SeamlessMotionTrigger::onEnterTrigger(%this, %trigger, %obj) { %obj.noPickup = true; commandToClient(%obj.client, 'MarbleTeleport', %trigger.offset); %obj.schedule((%obj.client.getPing() * 2) + 100, "setFieldValue", "noPickup", false); }
The following user(s) said Thank You: HiGuy

Please Log in or Create an account to join the conversation.

Moderators: Doomblah
Time to create page: 1.624 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.