Thread: addtiletype()
View Single Post
  #1  
Old 04-05-2011, 07:35 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
addtiletype()

This may have been requested before, if so it would be a good idea to bring up with V6 supposedly approaching.

If possible I'd like to see a function for:

addtiletype(x, y, width, height, tiletype);

This would work similarly to addtiledef2();, but instead of placing an image onto a tileset it would modify the tiletype within the specified area to your specified tiletype number.

This would make it much easier for applying custom tilesets of a fairly large size, usually you either have to include default tiles within them un-necessarily, or split them up into lots of different pieces and place over various different points of the tileset.
With this you'd simply be able to place a square of blocking tiles and a square of non blocking tiles anywhere not otherwise being used on the tileset via addtiledef2, then simply use the function to set your custom tilesets to the tiletype you want.
Reply With Quote