How to use sti with gamera?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Posts: 10
Joined: Mon Mar 20, 2017 11:02 pm

How to use sti with gamera?

Post by ertt » 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

Code: Select all

, 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.

(27.96 KiB) Downloaded 70 times

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests