file Working Teleporter Code

  • NaCl586
  • NaCl586's Avatar Topic Author
  • Offline
  • Professional Marbler
  • Professional Marbler
  • An Ordinary Marble Blaster
  • Posts: 442
  • Thank you received: 70
25 Dec 2011 03:04 #1
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
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
25 Dec 2011 04:32 #2
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
  • Posts: 442
  • Thank you received: 70
25 Dec 2011 04:34 #3
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
  • Posts: 882
  • Thank you received: 21
25 Dec 2011 04:50 #4
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
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
25 Dec 2011 05:08 #5
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
  • Posts: 442
  • Thank you received: 70
25 Dec 2011 05:11 #6
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
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
25 Dec 2011 23:14 #7
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
  • Posts: 442
  • Thank you received: 70
26 Dec 2011 03:13 #8
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
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
26 Dec 2011 03:13 #9
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
  • Posts: 442
  • Thank you received: 70
26 Dec 2011 12:37 #10
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
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
26 Dec 2011 19:52 #11
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.

  • Posts: 137
  • Thank you received: 0
21 Aug 2012 13:16 #12
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
  • Elite Marbler
  • Elite Marbler
  • PlatinumQuest Programmer
  • Posts: 1680
  • Thank you received: 205
21 Aug 2012 15:40 #13
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: Doomblah
Time to create page: 1.358 seconds