Search found 147 matches

by TurtleP
Sun Dec 23, 2012 4:27 am
Forum: Support and Development
Topic: Game "Achievements" not working
Replies: 11
Views: 4201

Game "Achievements" not working

Hello,

My game is going to have unlockable achievements, and my friend set up some code that should handle it.

https://dl.dropbox.com/u/97639347/Proje ... /store.lua

However, it's not firing the unlock function for some reason. Any help would be appreciated!
by TurtleP
Sun Dec 02, 2012 1:56 am
Forum: Support and Development
Topic: Slow Game (Windows only?)
Replies: 3
Views: 709

Re: Slow Game (Windows only?)

That is a lot of nested for loops. You're basically comparing every single object against every single other object. For n objects this will take n^2 time, so for large numbers of n you're going to see some pretty bad performance. If you want decent performance with lots of objects on the screen, y...
by TurtleP
Sat Dec 01, 2012 6:03 pm
Forum: Support and Development
Topic: Slow Game (Windows only?)
Replies: 3
Views: 709

Slow Game (Windows only?)

Hello, My game seems to run slow on my own OS (Windows) when there are a lot of "objects" on the screen. I am certain this is happening in my physics.lua: http://pastebin.com/6PMKZQQA OR function docollision() --Handles loops for physics. Lot less complicated than it seems. local lgamexscroll = game...
by TurtleP
Sat Dec 01, 2012 5:17 pm
Forum: Games and Creations
Topic: Turtle: Puzzles
Replies: 4
Views: 1013

Re: Turtle: Puzzles

I assume you want help to solve the problem ? If so, post your issues in the Support & Devlopment forum next time please. Also, if you don't want to share your game files with us try to post the entity code so we could even try to help. :) Sorry about that, I'll PM you all the details if you want.
by TurtleP
Sat Dec 01, 2012 4:33 pm
Forum: Games and Creations
Topic: Turtle: Puzzles
Replies: 4
Views: 1013

Turtle: Puzzles

Hello all!

I've been working hard these past two weeks with my friend on Steam who knows LOVE as well. For some reason, the game lags when there's too many "entities" on the game. If you ask for the game, I will PM you it, as it isn't ready for official release.
by TurtleP
Sun Apr 08, 2012 7:24 pm
Forum: Support and Development
Topic: Drawing help
Replies: 16
Views: 2100

Re: Drawing help

its "laserimg" not "lazerimg" solved! I know its laserimg. *facepalm* I need to call TurretLaser:draw() somehow don't I? Then I can draw the laser for the turret. That's the point. Box:draw() could work, but also, how could I increase the x value of the laser? (Probably in box:updaterange() or some...
by TurtleP
Sun Apr 08, 2012 3:45 pm
Forum: Support and Development
Topic: Drawing help
Replies: 16
Views: 2100

Re: Drawing help

This might sound stupid.. but how?

I'm not sure how to call it. I though of doing what was in game.lua, the

for j, w in pairs do
w: draw()
end

But would that work for the TurretLaser?
by TurtleP
Sun Apr 08, 2012 3:24 pm
Forum: Support and Development
Topic: Drawing help
Replies: 16
Views: 2100

Re: Drawing help

Robin wrote:So... box:draw() is empty. Shouldn't you put the stuff you want to draw in there?
Well I did, but it's now going to be in TurretLaser:draw() It makes sense I believe. Because the laser is seperate from the turret, but belongs with it. Much like how Maurice did the bulletbill.lua
by TurtleP
Sun Apr 08, 2012 1:34 pm
Forum: Support and Development
Topic: Drawing help
Replies: 16
Views: 2100

Re: Drawing help

Well either way, do I put those in box.lua? Because it's not drawing anything now. You gotta be more specific than that. Which file you put things in doesn't matter that much. It matters which files you require, what function you put things in and when you call those functions. Also, if you read th...
by TurtleP
Sat Apr 07, 2012 8:47 pm
Forum: Support and Development
Topic: Drawing help
Replies: 16
Views: 2100

Re: Drawing help

Well either way, do I put those in box.lua? Because it's not drawing anything now.