how to make tiles from a nice pic

malospam

  • *
  • Posts: 467
I was wondering if anyone could help me out on converting the image i am attaching into onces that fit properly in stencyl. I keep trying in stencyl but i can't get them to fit the proper way.  Anybody help or refer me to a tutorial? Thanks.
Visit Reddit's Stencyl page and contribute to spread the word about this amazing program!
http://www.reddit.com/r/stencyl

Tuo

  • *
  • Posts: 2469
What's happening when you try to upload it? It could be the image is too large for Stencyl to handle. You can normally just tell it how many rows/columns to make the image and it will crop it into squares for you.
Don't look to me but rather to the One who is the reason for what I do. :)

If you need help, send me a PM. Even if I haven't been on in the forums in ages, I still receive those messages via email notifications. You can also reply to any of my forum posts, regardless of the age (especially if I created it), and I will likely reply.

If you want to see the programming behind certain types of games, feel free to check out my "Demo-" games on StencylForge (http://community.stencyl.com/index.php/topic,16160.0.html)

rob1221

  • *
  • Posts: 9473
The positioning is off, and another issue is that the image is a JPG.  You'll have to add the transparency yourself and make it a PNG.

malospam

  • *
  • Posts: 467
Sorry I didn't post more details. I did make it a good small size and shrank the overall image to fit pretty well in the tile area, and of course converted it to png file with transparency. This is where I am having the trouble. No matter what numbers I modify on the borders and sizes it seems extremely hard to get stencyl to fit the right amount of the graphic in each of the tile boxes. Can you give me what you do in this situation, if you downloaded a nice image, shrank it and brought it in to stencyl, are there any other things you would do to make it look correct? I'm getting frustrated and it seems like the only solution right now for me is to make each tile on the image into a while tile set itself. Thanks for your help so far, more would be appreciated.
Visit Reddit's Stencyl page and contribute to spread the word about this amazing program!
http://www.reddit.com/r/stencyl

rob1221

  • *
  • Posts: 9473
Those grey squares are probably the size of the tile you need to use.  In that image it's 128x128, but you can scale it down to 64x64.  32x32 would probably be too small, and if you're using that size it could explain why your tiles don't look right.

malospam

  • *
  • Posts: 467
Hey Rob, thanks for helping so far. I was wondering if you can help me understand the size attributes. When you refer to 128x128 64x64  32x32, what does that exactly mean? I know its the tile size, but how  do you size the image of the tiles? I think thats confusing me. I understand the idea of different resolutions. But I am not sure how to get those sizes. Can you help me understand how to start from scratch with those sizes?

« Last Edit: August 13, 2013, 08:43:56 am by malospam »
Visit Reddit's Stencyl page and contribute to spread the word about this amazing program!
http://www.reddit.com/r/stencyl

Future Freak

  • Posts: 412
If you want to have tiles that are 32x32 pixels wide -  an image that is 320x320 pixels will give you a tileset that is 10 tiles wide and 10 tiles high.  An image of 64x64 pixels will give you a tileset of 4 tiles (2 high and 2 wide)

malospam

  • *
  • Posts: 467
hmm, ok I think I get it. Is it true, as it appears to me searching on the net, that most tilesets seem to be not in the sizes that Stencyl uses? btw nice job on worm food!
Visit Reddit's Stencyl page and contribute to spread the word about this amazing program!
http://www.reddit.com/r/stencyl

Future Freak

  • Posts: 412
hmm, ok I think I get it. Is it true, as it appears to me searching on the net, that most tilesets seem to be not in the sizes that Stencyl uses? btw nice job on worm food!

You will find that most tile sizes will be multiples of powers of 2 - e.g. 2, 4, 8, 16, 32, 64, 128, 256 - as this is the most efficient way on computers that are based on binary.

malospam

  • *
  • Posts: 467
thanks FutureFreak
Visit Reddit's Stencyl page and contribute to spread the word about this amazing program!
http://www.reddit.com/r/stencyl