Search found 402 matches

by DaedalusYoung
Sun Jul 19, 2015 2:22 pm
Forum: Support and Development
Topic: Window Icon
Replies: 8
Views: 2825

Re: Window Icon

Well, I don't know then, looks like it should work. Care to post a .love?
by DaedalusYoung
Sun Jul 19, 2015 2:18 pm
Forum: Support and Development
Topic: Int to String
Replies: 12
Views: 2889

Re: Int to String

I think with your method, if at some point as_int accidentally is nil, it will crash, while tostring simply converts the nil value to the string 'nil'.
by DaedalusYoung
Sat Jul 18, 2015 7:08 pm
Forum: Support and Development
Topic: Window Icon
Replies: 8
Views: 2825

Re: Window Icon

Using the same code in 0.8.0? Are you sure? Because it wasn't love.window in 0.8.0 yet. Maybe you're mixing up your versions, it works in 0.9.2, but not in 0.8.0?
by DaedalusYoung
Tue Jul 14, 2015 7:11 pm
Forum: Support and Development
Topic: Hardon Collider problem on restart
Replies: 9
Views: 1462

Re: Hardon Collider "resolve vector" behaving strangely

I didn't really look at your code, so I don't know what's causing your issue, but I just wanted to point out that this:
Ulydev wrote:

Code: Select all

    local tObj = obj1; obj1 = obj2; obj2 = tObj;
can be written easier like this:

Code: Select all

    obj1, obj2 = obj2, obj1 -- swaps obj1 and obj2
by DaedalusYoung
Tue Jul 07, 2015 9:42 pm
Forum: Support and Development
Topic: [SOLVED]Giving the user ability to move an animation
Replies: 2
Views: 521

Re: Giving the user ability to move an animation

In your love.draw function, you're placing the animation sprite always at coordinates 0, 0. You must of course set this to animation.x and animation.y for it to put the image at those coordinates instead.
by DaedalusYoung
Tue Jul 07, 2015 7:18 pm
Forum: Support and Development
Topic: [Solved] Resizing Rendered Area
Replies: 3
Views: 531

Re: Resizing Rendered Area

[wiki]love.graphics.scale[/wiki] should work.
by DaedalusYoung
Sun Mar 29, 2015 1:51 pm
Forum: Games and Creations
Topic: Starship Run
Replies: 4
Views: 1722

Re: Starship Run

Related: https://www.love2d.org/wiki/Config_Files is confusing. It references love.conf and conf.lua at the same time but I can't edit it. What do you mean you can't edit it? conf.lua is the filename of the configuration file. love.conf is the name of the function that should be defined in that fil...
by DaedalusYoung
Fri Mar 27, 2015 2:06 pm
Forum: Support and Development
Topic: Local Variable Availability - Multiple Callback Functions
Replies: 8
Views: 1838

Re: Local Variable Availability - Multiple Callback Function

Yeah, just declare the local outside any of the callbacks. Then it'll still be local to main.lua, not global, but can be accessed anywhere in that file.

Code: Select all

local var = 1

function love.draw()
    love.graphics.print(var)
end

function love.keypressed(k, r)
    var = var + 1
end
by DaedalusYoung
Tue Mar 24, 2015 11:10 pm
Forum: Support and Development
Topic: Do you have the Spy?
Replies: 5
Views: 1167

Re: Do you have the Spy?

Just start LÖVE with no game. That's the one you mean, right?
by DaedalusYoung
Sun Mar 22, 2015 11:34 pm
Forum: Support and Development
Topic: love.graphics.translate by whole numbers
Replies: 3
Views: 1329

Re: love.graphics.translate by whole numbers

Don't change the actual player's coordinates, just round them during draw.