Ill check the .love file later. See the error screen. It tells you what is wrong. It says on what line of code on what file etc etc. Try your best to debug whats happeningKyleFlores1014 wrote: ↑Sun Jun 04, 2017 7:47 am So im beginning to rewrite my code but i still get the same error i dont know whats wrong with my code game.love
Camera
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
Okay, it's because you are using the variable "mouseX" and "mouseY", which, in your code dont exist. I only used those two variables as an example. Please dont just copy paste code. Try to understand it.KyleFlores1014 wrote: ↑Sun Jun 04, 2017 7:47 am So im beginning to rewrite my code but i still get the same error i dont know whats wrong with my code game.love
Oh, ive told you before that use ".", not ":" in your main.lua
WHY?
Because the functions in your gamestates/main_menu.lua is, example,
Code: Select all
function MAIN_MENU.load() end --YOU USE . HERE
--etc etc
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
-
- Citizen
- Posts: 73
- Joined: Thu May 25, 2017 1:43 pm
Re: Camera
Ok i fixed my code thanks
-
- Citizen
- Posts: 73
- Joined: Thu May 25, 2017 1:43 pm
Re: Camera
i rewrote my code but the camera doesnt do anything the code i used was the example on the docs. The camera is on the player.lua file on the entities
-
- Citizen
- Posts: 73
- Joined: Thu May 25, 2017 1:43 pm
Re: Camera
i really dont know whats wrong with it
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
Perhaps dont put camera in your player. Put it in the gamestate (your main game state). Is there an error?
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
-
- Citizen
- Posts: 73
- Joined: Thu May 25, 2017 1:43 pm
Re: Camera
There is no error it just doesnt work
-
- Citizen
- Posts: 73
- Joined: Thu May 25, 2017 1:43 pm
Re: Camera
Ive put it in that gamestate and yet it still doesnt do anything
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
That hump camera doesn't work for you, find another module and learn to implement it yourself. Learning is funKyleFlores1014 wrote: ↑Tue Jun 06, 2017 1:47 pm Ive put it in that gamestate and yet it still doesnt do anything
My GameDev Website
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Going Home:A Pixelated Horror Game
My Repositories!
Follow me lovingly!
Nga pala, pinoy ako.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest