View Single Post
  #11  
Old 02-10-2005, 06:23 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Alexander
I win mine copied and pasted too =p
Copy and Paste is easy, but I would rather put it in a different script because in my opinion it would be better/easier/less confusing to separate the two abilities. I'd try to make something that would allow for predefined objects if I did that as well. All you really have to do for that is to save all of the tile code things in an array. Bucket fill would be a little more difficult, but possible. It's kindof a maze to make. The hard part would be checking for tiles that are the same and connected. Call a for loop checking each coordinate on the four borders of the tile and then checking that tiles four borders and the next tiles four borders. Maybe if I did a function that called itself... I just hope it wouldn't eat up all the memory, and doing that probably would so what might be an efficient way? Replacing the tiles wouldn't exactly be the hard part. Just using modulus from the initial coords could handle that. It would also give more control over how you want the tiles to be laid. The default editor, on the other hand, decides for itself.
Quote:
Originally Posted by Stefan
What I wanted to say is that you can't use one single image, many gfx cards don't allow it and in v3.1 it is not possible to make textures bigger than 1024x1024 anyway.
It won't be difficult to modify the script so that it takes 2 images in place of pics1.png. It can almost do that the way it is now. It would just need a check if it's over 1024 that would change which image and post that image at the same coordinates but with 1024 subtracted from an x value. So I guess I'll do that.
Quote:
Originally Posted by -Ramirez-
This is a bit off-topic, but oh well, it's Massokre's thread, so it's fine.
Thank you for your profound respect for others.
Reply With Quote