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
Cant Draw Tiles
Cant Draw Tiles
- Attachments
-
- Test.zip
- (209.09 KiB) Downloaded 307 times
- DaveyPocket
- Posts: 378
- Joined: Sun Sep 14, 2008 8:33 pm
- Contact:
Re: Cant Draw Tiles
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.
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.
Re: Cant Draw Tiles
Tiles can also be 8x8 in mode3. But no scrolling yet for that mode, though its coming....
Uze
Uze
Re: Cant Draw Tiles
Hmm i was worreied about that.
attached is the ts file.
thankyou all so much for you help.
attached is the ts file.
thankyou all so much for you help.
- Attachments
-
- SonicTileSet.zip
- (3.31 KiB) Downloaded 321 times
- DaveyPocket
- Posts: 378
- Joined: Sun Sep 14, 2008 8:33 pm
- Contact:
Re: Cant Draw Tiles
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.
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
Re: Cant Draw Tiles
Thank you so much for your help!
and thanks again for your quick reply.
and thanks again for your quick reply.
Re: Cant Draw Tiles
Have you managed to setup a demo?
- DaveyPocket
- Posts: 378
- Joined: Sun Sep 14, 2008 8:33 pm
- Contact:
Re: Cant Draw Tiles
I became unexpectedly busy with some stuff, I'll get one done ASAP.
You'll possibly see it done by tonight.
You'll possibly see it done by tonight.
- DaveyPocket
- Posts: 378
- Joined: Sun Sep 14, 2008 8:33 pm
- Contact:
Re: Cant Draw Tiles
I finished the demo, here you go
Look it over, feel free to ask any questions.
Look it over, feel free to ask any questions.
- Attachments
-
- Sprite Demo.zip
- (245.27 KiB) Downloaded 339 times