Search found 3 matches

by Nycleo
Mon Dec 11, 2023 8:10 pm
Forum: Support and Development
Topic: [SOLVED] Scaling and camera issues :'D [im probably very stoopid]
Replies: 5
Views: 20096

Re: Scaling and camera issues :'D [im probably very stoopid]

I think you have made a mess of coordinate systems. According to the code, self.x and self.y are in screen coordinates, while it appears that Camera:setPosition(x, y) expects world coordinates. Your coordinate transformation formulas are messed up. My recommendation is that you use a camera library...
by Nycleo
Mon Dec 04, 2023 7:22 pm
Forum: Support and Development
Topic: [SOLVED] Scaling and camera issues :'D [im probably very stoopid]
Replies: 5
Views: 20096

Re: Scaling and camera issues :'D [im probably very stoopid]

darkfrei wrote: Mon Dec 04, 2023 6:15 pm I am making translate and than scale, not in other order.
What do you mean?
by Nycleo
Mon Dec 04, 2023 5:06 pm
Forum: Support and Development
Topic: [SOLVED] Scaling and camera issues :'D [im probably very stoopid]
Replies: 5
Views: 20096

[SOLVED] Scaling and camera issues :'D [im probably very stoopid]

Hello hello! I'm fairly new to this whole Love2D and lua stuff so please explain to me as simply as possible! So i'm trying "to zoom in" with the camera system i have made for my little game project but i can't figure out how to do it even with some research. The "y" doesn't do w...