Search found 6 matches

by soulgirl2020
Tue Jun 23, 2020 1:45 pm
Forum: Support and Development
Topic: Make collision boxes stay when camera is used
Replies: 2
Views: 2186

Re: Make collision boxes stay when camera is used

THANK YOU!!!! I keep forgetting that everything at the bottom of the code is rendered last. That makes sense, I'll keep that in mind.
by soulgirl2020
Tue Jun 23, 2020 2:42 am
Forum: Support and Development
Topic: Make collision boxes stay when camera is used
Replies: 2
Views: 2186

Make collision boxes stay when camera is used

I'm making a basic 1986 Zelda game and so far I am comfortable using love.physics and setting up the collisions boxes and things of that nature. Once I tried to move the camera down all my boxes don't stay where they're supposed to be at. I only have an offset of -3 for the camera. They collision bo...
by soulgirl2020
Sun Jun 21, 2020 5:57 pm
Forum: Support and Development
Topic: Attempt to index global player
Replies: 2
Views: 2483

Re: Attempt to index global player

Thanks for catching that, I switched back to using the "Class" library using self, which makes things much easier. Everything works now.
by soulgirl2020
Sat Jun 20, 2020 5:55 pm
Forum: General
Topic: Access variables in different files
Replies: 2
Views: 4055

Re: Access variables in different files

OMG! Thank you so much, it works now. I did not instantiate the class file in main.lua. :)
by soulgirl2020
Fri Jun 19, 2020 9:32 pm
Forum: Support and Development
Topic: Attempt to index global player
Replies: 2
Views: 2483

Attempt to index global player

I'm building a very basic Zelda 1986 game. I'm trying to get my game to run again after switching to the box2D collision along with the windfield library. Initially, my world was created and tied back to a file name Map.lua. I had to change everything back to main since I want to use windfield along...
by soulgirl2020
Fri Jun 19, 2020 1:08 am
Forum: General
Topic: Access variables in different files
Replies: 2
Views: 4055

Access variables in different files

I am trying to create a basic zelda game and so far I have the main, player, util, animation, enemy1, and a struggling physics engine. I'm trying to use a global variable from main (tileWidth) and use it in player. It says that it is nill, and I've tried putting it in love.load and above it at the t...