## How to use sti with gamera?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
ertt
Prole
Posts: 10
Joined: Mon Mar 20, 2017 11:02 pm

### How to use sti with gamera?

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

Code: Select all

camera:setWindow(10,10,80,80)
, 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
Attachments
tiletest.love