How to use sti with gamera?
Posted: Tue May 14, 2019 11:43 pm
Hi everyone,
i have a problem with the correct usage of kikito's gamera lib in combination with karai17's sti lib (which I both appreciate very much) to work with Tiled-exported lua-files.
When i draw the map without gamera everything is fine and the map is drawn on the hole window. But when i want to draw the map with gamera in a defined part of the window, for example, i have some strange translating effets. The drawn tiles are outsite of the defined window. When the window is to small, then the tiles are outsite my visible area (i suppost).
I suppose that the problem is something with the translating of the draw-elements. Maybe because gamera takes a translating and sti takes another translating and in the result the display is shifted to anywhere... something like this.
I have testet a full hour but i have no clue how to fix this.
Has anybody an Idea?
Thanks a lot.
Ertt
i have a problem with the correct usage of kikito's gamera lib in combination with karai17's sti lib (which I both appreciate very much) to work with Tiled-exported lua-files.
When i draw the map without gamera everything is fine and the map is drawn on the hole window. But when i want to draw the map with gamera in a defined part of the window, for example
Code: Select all
camera:setWindow(10,10,80,80)
I suppose that the problem is something with the translating of the draw-elements. Maybe because gamera takes a translating and sti takes another translating and in the result the display is shifted to anywhere... something like this.
I have testet a full hour but i have no clue how to fix this.
Has anybody an Idea?
Thanks a lot.
Ertt