Results 1 to 3 of 3

Thread: Custom_Tile setCustomObject stretch not available

  1. #1

    Exclamation Custom_Tile setCustomObject stretch not available

    When spawning a Custom_Tile, I am not able to set the stretch parameter to false and I can't seem to find a way to change this setting programmatically.

    obj = spawnObject({
    All of the parameters work except stretch. Stretch is also not listed in the api docs. Is this a newer setting for tiles? I am loading in hex tiles and stretching to aspect messes with their size/shape.

  2. #2
    You probably can work around it for now using spawnObjectJSON instead. Take a look how custom tile JSON looks (e.g. in the save file) and redo that structure as a table in TTS, you should be able to modify any part of it you need that way.

  3. #3
    Yeah, I ended up doing that after I posted this. I saved a Custom_Tile json and added in some placeholders like <<IMG>> so I could string.gsub to put in the actual image as needed. It works well, just frustrating that that was needed.

Similar Threads

  1. [Veil of the Ages] Kickstarter with free TTS mod as stretch goal
    By Veil of the Ages in forum Introductions
    Replies: 0
    Last Post: 05-01-2019, 07:35 PM
  2. reload() after SetCustomObject causing error
    By decumanusmaximus in forum Scripting
    Replies: 3
    Last Post: 10-12-2018, 03:09 PM

Tags for this Thread

Posting Permissions

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