Search found 9 matches

by DeadInternal
Thu May 31, 2012 4:00 am
Forum: Support and Development
Topic: Rotate From Center
Replies: 3
Views: 3270

Re: Rotate From Center

Thanks! I guess I should pay more attention to the arguments in things like that.
by DeadInternal
Thu May 31, 2012 3:02 am
Forum: Support and Development
Topic: Rotate From Center
Replies: 3
Views: 3270

Rotate From Center

I've been working on making a image rotate to face my mouse. After a while I finally got this to work, but I noticed something strange. I rotate it by doing this. function love.draw() love.graphics.draw(turtle, turtlex, turtley, angletomouse, .1, .1) --More code end Where 'turtle' is a pre made imag...
by DeadInternal
Sun May 27, 2012 4:13 pm
Forum: Support and Development
Topic: Delay function isn't working.
Replies: 4
Views: 2500

Re: Delay function isn't working.

kikito wrote:Maybe you want to give a look at cron.lua. cron.after might be what you are looking for.

That solved it! Thank you!
by DeadInternal
Sun May 27, 2012 3:46 pm
Forum: Support and Development
Topic: Delay function isn't working.
Replies: 4
Views: 2500

Re: Delay function isn't working.

So is it flat-out not logically possible to create a wait? I was thinking about attempting a few experiment with coroutines next. Bleh, I'll live without the wait.
by DeadInternal
Sun May 27, 2012 4:17 am
Forum: Support and Development
Topic: Delay function isn't working.
Replies: 4
Views: 2500

Delay function isn't working.

Basically what the function is suppose to do is wait the amount of seconds specified. The function is inside the love.update function. This is the first block of code. The second block of code basically plays 2 noises if you click the left mouse button. First it plays the 'fire' noise, then after 5 ...
by DeadInternal
Fri May 25, 2012 11:18 pm
Forum: Support and Development
Topic: Polygon Help
Replies: 7
Views: 3844

Re: Polygon Help

Ah, okay. So basically my issue was that I had the love.draw function twice. Thanks for all your help.
by DeadInternal
Fri May 25, 2012 10:31 pm
Forum: Support and Development
Topic: Polygon Help
Replies: 7
Views: 3844

Re: Polygon Help

Well, that's easy: cat love.exe game.love > game.exe I could've sworn that was on there too, though. Thanks! Also, I've been having issues with the love.draw() function. I guess I'm not doing it correct or something. local text = "The key you pressed is : " function createtext(txt, x, y) ...
by DeadInternal
Fri May 25, 2012 10:04 pm
Forum: Support and Development
Topic: Polygon Help
Replies: 7
Views: 3844

Re: Polygon Help

All the love.graphics functions for drawing stuff are meant to be called in the love.draw callback. love.load is meant for, well, loading things like images and sounds as well as setting variables. https://love2d.org/wiki/love https://love2d.org/wiki/love.draw Thanks! I didn't know that all drawing...
by DeadInternal
Fri May 25, 2012 2:03 am
Forum: Support and Development
Topic: Polygon Help
Replies: 7
Views: 3844

Polygon Help

I'm relatively new to Love2D and I've been messing around with some random functions lately. I came across the love.graphics.polygon() function and for whatever reason it doesn't seem to work. Here's the code I have as of now. The polygon function is inside the love.load function. The polygon doesn'...