file Working Teleporter Code

  • NaCl586
  • NaCl586's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • An Ordinary Marble Blaster
More
25 Dec 2011 03:04 #1 by NaCl586
Working Teleporter Code was created by NaCl586
This code was tested before I put the code on MBDK. This code works 100%. Jeff taught me how to do this. I have promised to release this code on MBDK at 25th December. Few lines nearly are the same as elite's code. But both Jeff and Nihahhat already gave permission to this code. Enjoy!

Code://
// Teleport Trigger by Gerson, for MBDK
// MERRY CHRISTMAS 2011 & HAPPY NEW YEAR 2012!
//

datablock triggerData(TeleportTrigger) {
tickPeriodMS = 100;
};

datablock triggerData(LocationTrigger) {
tickPeriodMs = 100;
};

function TeleportTrigger::onEnterTrigger(%this,%trigger,%obj) {
%location = %trigger.location;
%position= nameToId(%location);
    if(%trigger.location $= ){
    messageclient(%obj.client, '', '\c0No speciefied location in this trigger!');
    return;
    }
    if(isObject(%position)) {
    %x = getWord(%location.getTransform(), 0);
        %y = getWord(%location.getTransform(), 1);
        %z = getWord(%location.getTransform(), 2);
        %a1 = getword(%location.getTransform(), 3);
        %a2 = getword(%location.getTransform(), 4);
        %a3 = getword(%location.getTransform(), 5);
        %a4 = getword(%location.getTransform(), 6);
        %rot = %a1 SPC %a2 SPC %a3 SPC %a4;
        %destination = %x SPC %y SPC %z SPC %rot;
    }
%obj.setTransform(%destination);
}

I hope you enjoyed!

P.S Marble Fade effects will be added if Jeff want to code MBAdventure after elite demo is released. If else, just wait until Jeff give the gift...

I'm just an ordinary marble blaster who like to create new and unusual things.

Creator of the Marble Blast GLC series
Check out and download my custom levels here .
Check out my original musics in this thread and in my soundcloud here .

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
25 Dec 2011 04:32 #2 by Jeff
Replied by Jeff on topic Working Teleporter Code
good job gerson!

Now add a marble fader to it. lol

Just kidding.

Jeff

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

  • NaCl586
  • NaCl586's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • An Ordinary Marble Blaster
More
25 Dec 2011 04:34 #3 by NaCl586
Replied by NaCl586 on topic Working Teleporter Code
If you want to code MBAdventure after elite demo is released, I will..

I'm just an ordinary marble blaster who like to create new and unusual things.

Creator of the Marble Blast GLC series
Check out and download my custom levels here .
Check out my original musics in this thread and in my soundcloud here .

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

  • Perishingflames
  • Perishingflames's Avatar
  • Offline
  • Senior Marbler
  • Senior Marbler
More
25 Dec 2011 04:50 #4 by Perishingflames
Replied by Perishingflames on topic Working Teleporter Code
Nice job. I see a typo though: no speciefied location

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
25 Dec 2011 05:08 #5 by Jeff
Replied by Jeff on topic Working Teleporter Code
gerson, no. I am not coding your mod.

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

  • NaCl586
  • NaCl586's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • An Ordinary Marble Blaster
More
25 Dec 2011 05:11 #6 by NaCl586
Replied by NaCl586 on topic Working Teleporter Code
so i wont

I'm just an ordinary marble blaster who like to create new and unusual things.

Creator of the Marble Blast GLC series
Check out and download my custom levels here .
Check out my original musics in this thread and in my soundcloud here .

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
25 Dec 2011 23:14 #7 by Jeff
Replied by Jeff on topic Working Teleporter Code
Quote:P.S Marble Fade effects will be added if Jeff want to code MBAdventure after elite demo is released. If else, just wait until Jeff give the gift...

who said i was gonna do that...

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

  • NaCl586
  • NaCl586's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • An Ordinary Marble Blaster
More
26 Dec 2011 03:13 #8 by NaCl586
Replied by NaCl586 on topic Working Teleporter Code
maybe i will give the full code in next 6 months

I'm just an ordinary marble blaster who like to create new and unusual things.

Creator of the Marble Blast GLC series
Check out and download my custom levels here .
Check out my original musics in this thread and in my soundcloud here .

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
26 Dec 2011 03:13 #9 by Jeff
Replied by Jeff on topic Working Teleporter Code
well ok then, but i already have a teleporter code with all this stuff in the mbdk....

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

  • NaCl586
  • NaCl586's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • An Ordinary Marble Blaster
More
26 Dec 2011 12:37 #10 by NaCl586
Replied by NaCl586 on topic Working Teleporter Code
but that (your code) isnt working... i will put the fade effects when lunar new year come... (23rd january)... just adding %trigger.time, %obj.startFade(%trigger.time, 0, true);, using cancel and happylunarnewyear function..... guess how to assemble them all to my code.... btw sorry jeff about invation, actually i must thanked this to you. Thank you jeff for helping me code this

I'm just an ordinary marble blaster who like to create new and unusual things.

Creator of the Marble Blast GLC series
Check out and download my custom levels here .
Check out my original musics in this thread and in my soundcloud here .

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
26 Dec 2011 19:52 #11 by Jeff
Replied by Jeff on topic Working Teleporter Code
you are welcome Gerson.

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

More
21 Aug 2012 13:16 #12 by Kostas
Replied by Kostas on topic Working Teleporter Code
I am sorry for this VERY long bump! I hope that I won't get warned.

Can someone post a tutorial how to make it work on a level? I always had that question.

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

  • Jeff
  • Jeff's Avatar
  • Offline
  • Developer
  • Developer
  • PlatinumQuest Programmer
More
21 Aug 2012 15:40 #13 by Jeff
Replied by Jeff on topic Working Teleporter Code
same as marble blast platinum, except instead of destination for dynamic field its location.

I am a programmer. Most here know me for being one of the major contributors to Marble Blast Platinum and PlatinumQuest.

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

Moderators: AayrlKalle29Regislian