Search found 39 matches

by IMP1
Fri Jun 29, 2012 3:44 pm
Forum: General
Topic: Avatars: OBEY!
Replies: 735
Views: 306964

Re: Avatars: OBEY!

Hey, YellowAfterlife. I made you a li'l something.
Image

I had to squash it all up a bit. This was the best I could do. Have an avatar.
by IMP1
Sun May 20, 2012 11:28 am
Forum: Support and Development
Topic: Animating
Replies: 8
Views: 718

Re: Animating

I think it may be the line(s) in 'player.lua': player.iterator = player.iterator + dt That's not adding a whole number, but player.iterator (I think) has to be an integer. Try adding 'love.graphics.print(player.iterator, 0, 0) to your draw function so you can see what the variable is. Add another va...
by IMP1
Sat Mar 24, 2012 2:50 pm
Forum: Support and Development
Topic: (Pre-)Drawing outside the game window?
Replies: 7
Views: 526

Re: (Pre-)Drawing outside the game window?

Petunien wrote:
Jasoco wrote:Edit: Also...

Code: Select all

end
elseif spawn_test >= 2 then
This is wrong. You're ending an if and then trying to continue it. Either remove end or change elseif to if.
I'm ending the for loop, or? :)
Clearer indentation would have meant that confusion would never have happened....

Just sayin'.
by IMP1
Fri Mar 23, 2012 9:10 pm
Forum: Support and Development
Topic: (Pre-)Drawing outside the game window?
Replies: 7
Views: 526

Re: (Pre-)Drawing outside the game window?

Are you sure it's not working? I mean, it's definitely possible. How are you making fly down?
by IMP1
Wed Mar 07, 2012 10:21 pm
Forum: Support and Development
Topic: Declare a key press combination for love.keyboard.isDown?
Replies: 15
Views: 2426

Re: Declare a key press combination for love.keyboard.isDown

Ohh, yeah, sorry. That makes more sense. Sometimes, once maybe every few years, I'll do something stupid. You should consider yourself lucky you expirienced one of these... 'rare'... events.
>.>
<.<
by IMP1
Wed Mar 07, 2012 11:10 am
Forum: Support and Development
Topic: Declare a key press combination for love.keyboard.isDown?
Replies: 15
Views: 2426

Re: Declare a key press combination for love.keyboard.isDown

vrld wrote:Immediate mode is superior again:

Code: Select all

function love.keyboard.allDown(k, ...)
    if not k then return true end
    return love.keyboard.isDown(k) and love.keyboard.allDown(...)
end
Should that not be return false?

Either way I love this method.
by IMP1
Mon Mar 05, 2012 11:20 am
Forum: Support and Development
Topic: Declare a key press combination for love.keyboard.isDown?
Replies: 15
Views: 2426

Re: Declare a key press combination for love.keyboard.isDown

Code: Select all

if love.keyboard.isDown("lctrl") and love.keyboard.isDown("d") then
    -- speed = 100 or whatever
end
by IMP1
Mon Jan 16, 2012 9:48 pm
Forum: Support and Development
Topic: A loop within a loop
Replies: 7
Views: 530

Re: A loop within a loop

In what format is the map? I ask because when I have my maps, they're in the form { { 1, 1, 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1, 1, 1 }, { 1, 1, 1, 1, 1, 1, 1 }, } In which case the loop needs to be y and then x. And doing it the other way round (unless the map is square) will result in error (and even...
by IMP1
Wed Jan 11, 2012 6:12 pm
Forum: Support and Development
Topic: Mouse: How to emulate "MouseLook" from FPS games?
Replies: 24
Views: 2349

Re: Mouse: How to emulate "MouseLook" from FPS games?

It's not perfect in terms of the angle. It should be slightly less, but the maths is a lot more confusing. local angle = math.atan( (dx * TURN_SPEED) / VISION_LENGTH ) should be local y = math.sqrt(math.abs(VISION_LENGTH ^ 2 - dx ^ 2)) local angle = math.atan( (dx * TURN_SPEED) / y ) Not sure about ...