Search found 166 matches

by Helvecta
Fri Oct 12, 2012 1:26 am
Forum: Support and Development
Topic: Declaring an unknown amount of variables
Replies: 3
Views: 412

Declaring an unknown amount of variables

Hello again! I've been learning a ton since I've been lurking around here, and I've decided I want to rewrite most of what I have worked on recently to make it more efficient, friendly, and generally less glitchy. One of these is to check the values of axes, but I want pretty much any controller to ...
by Helvecta
Mon Oct 08, 2012 9:35 pm
Forum: Support and Development
Topic: Side scrolling help..
Replies: 5
Views: 698

Meow.

Hiya! I slapped together a little somethin-somethin. What'cha gotta do is tell the program, "Hey, while I'm moving this direction, make sure I'm not past the screen!", like so: if love.keyboard.isDown("right") and player.x < love.graphics.getWidth() - player.width then player.x = player.x + 1 end Th...
by Helvecta
Sat Oct 06, 2012 11:19 pm
Forum: Support and Development
Topic: Limiting frames per second + FSAA-buffers
Replies: 9
Views: 2053

Re: Limiting frames per second + FSAA-buffers

Man, you guys are incredible! :ultraglee: I was reading Kadoba's link but since it seems to be written in a language other than Lua, the concept went over my head a bit. Thanks for pointing that out, Inny - it's like you're inside my head! :ultrashocked: Thanks again, everyone! *stops bumping my own...
by Helvecta
Sat Oct 06, 2012 8:48 pm
Forum: Support and Development
Topic: Limiting frames per second + FSAA-buffers
Replies: 9
Views: 2053

Re: Limiting frames per second + FSAA-buffers

^ I couldn't have asked for a better example of what I need. Many thanks to you too, Kadoba! EDIT: Hope this doesn't bump, but I just thought this snippet might be useful to someone: local fps = 60 -- set the FPS! UPDATE.max = 1 / fps -- when the max is reached, an update occurs. this is in SECONDS....
by Helvecta
Sat Oct 06, 2012 4:07 pm
Forum: Support and Development
Topic: Limiting frames per second + FSAA-buffers
Replies: 9
Views: 2053

Re: Limiting frames per second + FSAA-buffers

Oh. Oh my.

I did some looking around to understand what you meant by using dt in update functions, and realized that it is something I totally neglected.
Wow, how did I overlook this.

Ah, anyways, thank you, pk and micha! You've both been a tremendous help! :nyu:
by Helvecta
Sat Oct 06, 2012 9:14 am
Forum: Support and Development
Topic: Limiting frames per second + FSAA-buffers
Replies: 9
Views: 2053

Limiting frames per second + FSAA-buffers

Hello! I was wondering how you could go about limiting the frames per second. I've read and heard that you can enable "vsync", limiting the FPS to the refresh rate of your monitor, but. . eh, I'm not convinced; the application still runs with undesirable speed. So, I haven't actually tried what I wa...