Cant Draw Tiles

Topics on software tools like TileStudio, comments on documentation and tutorials (or the lack of) should go here.
Post Reply
Mattie
Posts: 4
Joined: Sat Feb 21, 2009 5:21 pm

Cant Draw Tiles

Post by Mattie »

This is really bugging me and making me feel like an idiot, i have created a set of 9 tiles in TileStudio, each tile is 40x40 (could this be the problem?) and i am trying to draw them on screen, although nothing shows up (im using the emulator for now) have i done anything wrong?

ps
i am using these tiles http://sdb.drshnaps.com/sheets/Misc/Mis ... ash2HR.png
Attachments
Test.zip
(209.09 KiB) Downloaded 307 times
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: Cant Draw Tiles

Post by DaveyPocket »

That is the problem, the main tile engine cannot support 40x40 tiles, only 6x8. But don't worry, you can split up the bigger image into smaller tiles and map it out into a sprite or just a tile map.

By looking at how you set it up, sprites cannot be displayed yet, you have the video mode set to video mode 1, tiles only mode. Video mode 2 supports sprites, but everything will be stretched a bit.

Fix your tileset first or just post your tilestudio file, I can help you.
User avatar
uze6666
Site Admin
Posts: 4801
Joined: Tue Aug 12, 2008 9:13 pm
Location: Montreal, Canada
Contact:

Re: Cant Draw Tiles

Post by uze6666 »

Tiles can also be 8x8 in mode3. But no scrolling yet for that mode, though its coming....

Uze
Mattie
Posts: 4
Joined: Sat Feb 21, 2009 5:21 pm

Re: Cant Draw Tiles

Post by Mattie »

Hmm i was worreied about that.
attached is the ts file.

thankyou all so much for you help.
Attachments
SonicTileSet.zip
(3.31 KiB) Downloaded 321 times
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: Cant Draw Tiles

Post by DaveyPocket »

I've fixed your tileset, all the sprites you wanted are now in 6x8 format, if you noticed, I just made one giant map. If you want multiple sprites of Sonic running, take each frame and put it into its own map.

Give me until tomorrow, I'll go more in depth and show you a working example.
Attachments
tileset.zip
(4.03 KiB) Downloaded 325 times
Mattie
Posts: 4
Joined: Sat Feb 21, 2009 5:21 pm

Re: Cant Draw Tiles

Post by Mattie »

Thank you so much for your help!
and thanks again for your quick reply.
Mattie
Posts: 4
Joined: Sat Feb 21, 2009 5:21 pm

Re: Cant Draw Tiles

Post by Mattie »

Have you managed to setup a demo?
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: Cant Draw Tiles

Post by DaveyPocket »

I became unexpectedly busy with some stuff, I'll get one done ASAP.
You'll possibly see it done by tonight.
User avatar
DaveyPocket
Posts: 378
Joined: Sun Sep 14, 2008 8:33 pm
Contact:

Re: Cant Draw Tiles

Post by DaveyPocket »

I finished the demo, here you go :mrgreen:
Look it over, feel free to ask any questions.
Attachments
Sprite Demo.zip
(245.27 KiB) Downloaded 339 times
Post Reply