Results 1 to 10 of 10

Thread: Tiledef script

  1. #1
    ThreadWatcher Detective Selth's Avatar
    Join Date
    Oct 2015
    Location
    California
    Posts
    363

    Tiledef script

    I LAT on testbed and recently my tiledef script no longer works for some reason it highlights "Function" as red meaning it probably wont work anymore the script is old and im wondering if anyone could donate me their updated tiledef script so i may start doing LAT again.

  2. #2
    Runner Capo Minho's Avatar
    Join Date
    Jul 2017
    Location
    Manila
    Posts
    986
    //#CLIENTSIDE
    function onPlayerEnters() {
    removetiledefs("");
    addtiledef("era_tileset-summer-offline_aug-2018.png",this.level.name,1);
    }

    // era_tileset-summer-offline_aug-2018.png
    Discord Me:
    jaala#0029

  3. #3
    ThreadWatcher Detective Selth's Avatar
    Join Date
    Oct 2015
    Location
    California
    Posts
    363
    Quote Originally Posted by Minho View Post
    //#CLIENTSIDE
    function onPlayerEnters() {
    removetiledefs("");
    addtiledef("era_tileset-summer-offline_aug-2018.png",this.level.name,1);
    }

    // era_tileset-summer-offline_aug-2018.png

    Still does not work thist ime it highlights "function" and i added the level name like it asked this.level.name i put in selth-new.nw and now it highlights "New"

  4. #4
    Runner Capo Minho's Avatar
    Join Date
    Jul 2017
    Location
    Manila
    Posts
    986
    Quote Originally Posted by Selth View Post
    Still does not work thist ime it highlights "function" and i added the level name like it asked this.level.name i put in selth-new.nw and now it highlights "New"
    the entire script just stays as is, just copy and paste it into an npc then it should work
    Discord Me:
    jaala#0029

  5. #5
    ThreadWatcher Detective Selth's Avatar
    Join Date
    Oct 2015
    Location
    California
    Posts
    363
    Quote Originally Posted by Minho View Post
    the entire script just stays as is, just copy and paste it into an npc then it should work
    https://gyazo.com/6ef2dc1efafcb765e6bf91c3f4a338d0

  6. #6
    Runner Capo Minho's Avatar
    Join Date
    Jul 2017
    Location
    Manila
    Posts
    986
    try putting it on a noob npc then right under all the default scripts on that npc just copy and paste it there
    Discord Me:
    jaala#0029

  7. #7
    ThreadWatcher Detective Selth's Avatar
    Join Date
    Oct 2015
    Location
    California
    Posts
    363
    Quote Originally Posted by Minho View Post
    try putting it on a noob npc then right under all the default scripts on that npc just copy and paste it there
    Do i require the tileset to be uploaded within the tileset folder since i do not have access to it i uploaded it in images and it still does not work.

  8. #8
    Runner Capo Minho's Avatar
    Join Date
    Jul 2017
    Location
    Manila
    Posts
    986
    Quote Originally Posted by Selth View Post
    Do i require the tileset to be uploaded within the tileset folder since i do not have access to it i uploaded it in images and it still does not work.
    nope, hmm press f7 and message gmc he'll help you out
    Discord Me:
    jaala#0029

  9. #9
    aaaaaaaaaaaaaaaaaaaaaaaaa Grief Hero's Avatar
    Join Date
    Jun 2013
    Location
    n/a
    Posts
    1,327
    The highlighting doesn't really mean anything - the online editor only has very basic coloring and you really shouldn't pay attention to it. Make sure there aren't multiple copies of the image with the same name on Testbed, which I know is a common occurrence on there. You can just place it into your images folder, and also make sure it's the only script in the level that's going to edit tilesets.


    I saw. I conquered. I came.


  10. #10
    Leveler
    Join Date
    Nov 2016
    Location
    US
    Posts
    1,309
    //#CLIENTSIDE
    function onPlayerEnters() {
    addtiledef2("tileset-image-name-here.png", "levelnamehere.nw", xfloat, yfloat);
    }

    What I use for my levels ^^.
    Feel free to ask any question!

    iZone Levels Admin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •