Search found 26 matches
- Mon Jun 02, 2014 4:05 am
- Forum: Support and Development
- Topic: If statement with 2 booleans?
- Replies: 6
- Views: 3699
If statement with 2 booleans?
I am having a problem, and I cant figure out what to search for to find the correct answer. Lets say I wanted to do this: if not inPause then playerUDPATE() end if not inMenu then playerUDPATE() end How can I consolidate that into one if? I know that booleans act differently with and and or and so w...
- Sat May 03, 2014 4:43 pm
- Forum: Support and Development
- Topic: A very simple camera lib
- Replies: 36
- Views: 14896
Re: A very simple camera lib
Okay I figured it out. I remember a while ago I had everything in the camera.draw function, except things like the player score, health, etc. But because I wanted the camera to move at 15 pixels per second, I created an invisible square, and then had the camera use that for its "look at" y...
- Sat May 03, 2014 3:09 pm
- Forum: Support and Development
- Topic: A very simple camera lib
- Replies: 36
- Views: 14896
Re: A very simple camera lib
Thanks for the reply Kikito. I was concerned I might be misunderstanding the whole idea. I will go back and just rethink everything. But here is why I thought they were using different coordinate systems: If i place my player on the screen, and print out his y position, it will stay at 500(if I dont...
- Sat May 03, 2014 2:19 am
- Forum: Support and Development
- Topic: A very simple camera lib
- Replies: 36
- Views: 14896
Re: A very simple camera lib
Hi micha, Thanks for the reply. If I put the tanks within the viewport (opposite to how they are now), they will spawn at their respective x, y values. But they dont, they spawn way above the field of view, and the camera slowly brings them into view. So the camera does affect the objects that are b...
- Sat May 03, 2014 1:00 am
- Forum: Support and Development
- Topic: A very simple camera lib
- Replies: 36
- Views: 14896
Re: A very simple camera lib
Hi, I know this is an old thread, but seeing as it is about this library I thought it okay : ) I am running into a problem that my inexperienced mind cant figure out. Here is what I have: A player that moves with the camera. Can move around freely without affecting what the camera looks at. The came...
- Sat Apr 26, 2014 9:04 pm
- Forum: Support and Development
- Topic: [Solved] Access table information from a different file?
- Replies: 6
- Views: 4592
Re: How to access table information from a different file?
Awesome, thank you Snake!
That worked and I understand a little bit more about the whole thing. I will delve into the links you provided.
Thanks
That worked and I understand a little bit more about the whole thing. I will delve into the links you provided.
Thanks
- Sat Apr 26, 2014 6:17 pm
- Forum: Support and Development
- Topic: [Solved] Access table information from a different file?
- Replies: 6
- Views: 4592
Re: How to access table information from a different file?
Hi, I implemented the fix you suggested but now I am getting another error that I cant figure out. It tells me that it cant index the upvalue player because it is a boolean? There are no booleans in the player table. I am really not sure what it means. I searched for a bit but cant find out what it ...
- Sat Apr 26, 2014 5:22 pm
- Forum: Support and Development
- Topic: [Solved] Access table information from a different file?
- Replies: 6
- Views: 4592
Re: How to access table information from a different file?
Thanks!
Do you mind if I ask why it needs to be like that? Right now with love and lua I am having the most trouble with learning how things relate/use each other.
Thanks
Do you mind if I ask why it needs to be like that? Right now with love and lua I am having the most trouble with learning how things relate/use each other.
Thanks
- Sat Apr 26, 2014 4:27 pm
- Forum: Support and Development
- Topic: [Solved] Access table information from a different file?
- Replies: 6
- Views: 4592
[Solved] Access table information from a different file?
Hi, Quick question: how would I go about accessing table information from a file other than the file the table is in? I have player.lua, with this information: player = {} player.x = 250 player.y = 250 Then in collisions.lua, I need to use player.x in my collision functions. I tried putting require ...
- Mon Apr 14, 2014 4:45 pm
- Forum: General
- Topic: How to draw this contrail?
- Replies: 16
- Views: 14222
Re: How to draw this contrail?
What does an orange name signify?