Hey guys,
The following code doesn't quite work for the camera script located from 118 - 152 in main.lua.
I've used a cursor follow script that micha gave me a while ago, it doesn't quite work with the camera.
Any help?
Thanks, and sorry for spamming you with questions XD
Camera Script Not Working.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 34
- Joined: Mon Nov 24, 2014 9:15 pm
Camera Script Not Working.
- Attachments
-
- KillEverybody.love
- (44.55 KiB) Downloaded 107 times
Re: Camera Script Not Working.
I think i fixed it. I just changed lines 45 and 46 from this:
To this:
The file is in attachment
Code: Select all
rotcalc.x = love.mouse.getX() - movement.x
rotcalc.y = love.mouse.getY() - movement.y
Code: Select all
rotcalc.x = love.mouse.getX() + camera.x - movement.x
rotcalc.y = love.mouse.getY() + camera.y - movement.y
- Attachments
-
- KillEverybody_corrected.love
- (44.58 KiB) Downloaded 176 times
-
- Prole
- Posts: 34
- Joined: Mon Nov 24, 2014 9:15 pm
Re: Camera Script Not Working.
Thanks, It worksvladgalay wrote:I think i fixed it. I just changed lines 45 and 46 from this:
To this:Code: Select all
rotcalc.x = love.mouse.getX() - movement.x rotcalc.y = love.mouse.getY() - movement.y
The file is in attachmentCode: Select all
rotcalc.x = love.mouse.getX() + camera.x - movement.x rotcalc.y = love.mouse.getY() + camera.y - movement.y
Who is online
Users browsing this forum: Google [Bot] and 6 guests