Please send the code so that i can see whats the errorKyleFlores1014 wrote: ↑Thu Jun 01, 2017 6:08 am I rewrote my code but now i cant add the on screen controls like before. because of the local ={}
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.
-
- Citizen
- Posts: 73
- Joined: Thu May 25, 2017 1:43 pm
Re: Camera
nevermind that error i fixed it but i made 2 fonts but when i try to make a new one it makes an error
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
Use fontName = love.graphics.newFont("pathToFont")KyleFlores1014 wrote: ↑Fri Jun 02, 2017 10:20 am nevermind that error i fixed it but i made 2 fonts but when i try to make a new one it makes 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
Thats the code i use but when I apply it using love.graphics.setFont(font) it makes an error but i already made 2 fonts the same way
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
Always post the error you get. We can't guess whats the problem.KyleFlores1014 wrote: ↑Fri Jun 02, 2017 2:09 pm Thats the code i use but when I apply it using love.graphics.setFont(font) it makes an error but i already made 2 fonts the same way
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
Here is my code sorry if i didnt implement the switch function i dont get it
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
As ive commented and explained in the template, the switch function is necessary. Because love.load is only run once, so if you change your gamestate, that new gamestate's load function will not be called. Therefore, you will get a lot of errors.KyleFlores1014 wrote: ↑Sat Jun 03, 2017 5:20 am game.love Here is my code sorry if i didnt implement the switch function i dont get it
I will check your code later
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
Oh ok but the switch state, state = newState its gonna switch the state but wont that cause an error?
- yetneverdone
- Party member
- Posts: 446
- Joined: Sat Sep 24, 2016 11:20 am
- Contact:
Re: Camera
Ofcourse not, thats why before we actually switch to the new state, we call the current state's exit function (useful for a lot of stuffs, but if you don't need it, just let it be). Then switch the state, then call the new state's load function
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
here is the code i already wrote the switch function but it still makes an error because of the font when you click about
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests