Diddy-Example 'TiledTileMapReader' not found

Monkey Forums/Monkey Programming/Diddy-Example 'TiledTileMapReader' not found

Ske(Posted 2016) [#1]
Hi, I would like to run some diddy-examples like testTile.monkey from

https://github.com/swoolcock/diddy-examples

When I download the diddy module from

https://github.com/swoolcock/diddy

and include it into the "diddy-examples-master/src/Tile/" Folder and Build the example I get a

"Error : Type 'TiledTileMapReader' not found"

Where can I found the TiledTileMapReader lib/module or what is missing?

Any hints are welcome.


Nobuyuki(Posted 2016) [#2]
The class is now located in diddy.tile.diddyreader. The tilemap part of diddy was recently made modular, so you may have to change the example to import diddy.tile manually. The example doesn't appear to have been updated since the changes were made.


Ske(Posted 2016) [#3]
Thank you Nobuyuki it works now. I add "Import diddy.tile.diddyreader" and change "Extends TiledTileMapReader" to "Extends DiddyTiledTileMapReader".


therevills(Posted 2016) [#4]
Sorry about that, Samah made quite major changes to support different loaders and we didnt fix up the examples....


Ske(Posted 2016) [#5]
No problem :). At the moment I try to fix the Platformer example to run correctly. Unfortunatley the scrollX and scrollY tile/player render work not as expected.

tilemap.RenderMap(diddyGame.scrollX, diddyGame.scrollY, SCREEN_WIDTH, SCREEN_HEIGHT, 1, 1)
player.Draw(diddyGame.scrollX, diddyGame.scrollY, True)

The player and the tile map moved in a weird directions when I use WASD.

It's time to study the diddly module in deep. :)


therevills(Posted 2016) [#6]
You could check out post 193 on the Diddy module thread if you require further help:

http://www.monkey-x.com/Community/posts.php?topic=8291&page=8


Ske(Posted 2016) [#7]
Cool thanks, I will check this out.