Search found 407 matches
- Mon Aug 24, 2015 2:04 am
- Forum: Support and Development
- Topic: [SOLVED]Making a Dress Up Game... Have a Question!
- Replies: 8
- Views: 6220
Re: Making a Dress Up Game... Have a Question!
You're possibly not calling them by the correct name. How are you loading the images and how are you trying to draw them, precisely? Can you post your code?
- Tue Jul 28, 2015 4:17 pm
- Forum: General
- Topic: Code Doodles!
- Replies: 196
- Views: 264839
Re: Code Doodles!
There are an infinite number of digits, so every number will appear an infinite amount of times, so yeah, that should be true.micha wrote:The statements (1) that every possible number can be found inside pi and (2) that the digits are evenly distributed in pi might still be true. I am not sure about that.
- Tue Jul 28, 2015 3:39 am
- Forum: Support and Development
- Topic: Moving and Start-Origin Problems after using AnAl
- Replies: 2
- Views: 2110
Re: Moving and Start-Origin Problems after using AnAl
Because you're hardcoding the x and y values: love.graphics.draw(idleright, 40, 50) should be something like: love.graphics.draw(idleright, enemy.x, enemy.y) Btw, you might want to use dt in your move function too: function enemy.move(dt) if love.keyboard.isDown('d') then enemy.x = enemy.x + (10 * d...
- Tue Jul 28, 2015 3:25 am
- Forum: Support and Development
- Topic: Logic error: love.draw is drawing everywhere!!!
- Replies: 3
- Views: 2948
Re: Logic error: love.draw is drawing everywhere!!!
From what I can tell with this code, it looks like you keep creating new buttons all the time. Even if the window size doesn't change, you keep adding the same buttons over and over. Then when the window resizes, all these hundreds of buttons drawn on top of each other are still there and the game j...
- Sun Jul 19, 2015 6:01 pm
- Forum: Support and Development
- Topic: Window Icon
- Replies: 8
- Views: 6665
Re: Window Icon
Works for me on Mac as well.
Btw, don't create a new image in your love.draw function. This function runs every frame, so it will cause all sorts of issues in larger projects. Just create it once (like in love.load) and then you can just draw it whenever you want to.
Btw, don't create a new image in your love.draw function. This function runs every frame, so it will cause all sorts of issues in larger projects. Just create it once (like in love.load) and then you can just draw it whenever you want to.
- Sun Jul 19, 2015 2:22 pm
- Forum: Support and Development
- Topic: Window Icon
- Replies: 8
- Views: 6665
Re: Window Icon
Well, I don't know then, looks like it should work. Care to post a .love?
- Sun Jul 19, 2015 2:18 pm
- Forum: Support and Development
- Topic: Int to String
- Replies: 12
- Views: 7052
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'.
- Sat Jul 18, 2015 7:08 pm
- Forum: Support and Development
- Topic: Window Icon
- Replies: 8
- Views: 6665
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?
- Tue Jul 14, 2015 7:11 pm
- Forum: Support and Development
- Topic: Hardon Collider problem on restart
- Replies: 9
- Views: 2821
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:
can be written easier like this:Ulydev wrote:Code: Select all
local tObj = obj1; obj1 = obj2; obj2 = tObj;
Code: Select all
obj1, obj2 = obj2, obj1 -- swaps obj1 and obj2
- Tue Jul 07, 2015 9:42 pm
- Forum: Support and Development
- Topic: [SOLVED]Giving the user ability to move an animation
- Replies: 2
- Views: 1782
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.