Search found 6 matches

by IgnorantPeasant
Wed Sep 26, 2018 10:46 pm
Forum: General
Topic: Camera (gamera) does not update
Replies: 9
Views: 8514

Re: Camera (gamera) does not update

I just coded my own, thanks everyone for your answers.

SOLVED
by IgnorantPeasant
Wed Sep 26, 2018 12:06 pm
Forum: General
Topic: Camera (gamera) does not update
Replies: 9
Views: 8514

Re: Camera (gamera) does not update

Regardless its position the camera only moves 1920 pixels over the X axis.
Considering I have a 1920p width screen and the world is set 3 times that value it should move 3840 at least, so I don't know.
I'll try a different one, suggestions are welcome!
by IgnorantPeasant
Wed Sep 26, 2018 10:41 am
Forum: General
Topic: Camera (gamera) does not update
Replies: 9
Views: 8514

Re: Camera (gamera) does not update

I understand but camera is at 960 and it refuses to move to the left (5760 width world)
by IgnorantPeasant
Wed Sep 26, 2018 3:45 am
Forum: General
Topic: Camera (gamera) does not update
Replies: 9
Views: 8514

Re: Camera (gamera) does not update

it seems it start moving in the x axis when camera_x reach the screen width or half at 1.0 scale, also it doesn't move to the left.
I must bee just too dumb because I can't figure why.
by IgnorantPeasant
Wed Sep 26, 2018 1:52 am
Forum: General
Topic: Camera (gamera) does not update
Replies: 9
Views: 8514

Re: Camera (gamera) does not update

Thank you, that makes sense.
However I increased world size

Code: Select all

gamera.new(camera_x,camera_y,3000,2000)
...and still doesn't move

Also getPosition() and getVisible() always return the same values (960 and 0 respectively) regardless camera_x and camera_y are being modified.
by IgnorantPeasant
Tue Sep 25, 2018 8:11 am
Forum: General
Topic: Camera (gamera) does not update
Replies: 9
Views: 8514

Camera (gamera) does not update

Yo guys, I just started a couple hours ago, have experience in programming but not with LUA or this engine. Getting things done pretty fast tho. So I just created an isometric map and added this camera https://github.com/kikito/gamera I can zoom in and out but I can't make it move, can't figure what...