Search found 14 matches

by Prof_Ants
Mon Mar 05, 2012 11:06 am
Forum: Support and Development
Topic: Declare a key press combination for love.keyboard.isDown?
Replies: 15
Views: 6732

Re: Can I declare multiple keys for love.keyboard.isDown?

What I am aiming to do is declare a key press combination. Will the comma separate statement produce this affect?
by Prof_Ants
Mon Mar 05, 2012 10:57 am
Forum: Support and Development
Topic: Declare a key press combination for love.keyboard.isDown?
Replies: 15
Views: 6732

Declare a key press combination for love.keyboard.isDown?

I can't seem to find it detailed in the wiki, but am I able to declare a love.keyboard.isDown with multiple keys?

I tried this (to no avail):

Code: Select all

if love.keyboard.isDown("lctrl" + "d") then
            speed = 100
       end
by Prof_Ants
Mon Feb 27, 2012 3:24 am
Forum: Support and Development
Topic: Tiled wiki/tutorials
Replies: 1
Views: 1260

Tiled wiki/tutorials

I am wondering if there are any detailed tutorials on Tiled? I'm hard pressed to find a good write up on how the program works. Also, if I'm not mistaken it's purpose IS for creating maps for games, not just artwork, right?
by Prof_Ants
Tue Feb 21, 2012 10:01 am
Forum: Support and Development
Topic: Create a waking animation through pictures and keypresses
Replies: 16
Views: 7409

Re: Create a waking animation through pictures and keypresse

All good. Thank you anyway, I made a really silly error.
by Prof_Ants
Tue Feb 21, 2012 12:21 am
Forum: Support and Development
Topic: Create a waking animation through pictures and keypresses
Replies: 16
Views: 7409

Re: Create a waking animation through pictures and keypresse

I seem to be running into an issue with only one of the animations working. Here's the stuff: function love.load() require("AnAL") local imgup = love.graphics.newImage("/hero/heroanimeup.png") walking_up = newAnimation(imgup, 71, 101, 0.1, 3) local imgdown = love.graphics.newImag...
by Prof_Ants
Mon Feb 20, 2012 9:30 pm
Forum: Support and Development
Topic: Create a waking animation through pictures and keypresses
Replies: 16
Views: 7409

Re: Create a waking animation through pictures and keypresse

Thanks for the tip! I've taken it on board. At the moment though, I'm still running into an issue where when I press I direction it throws a "attempt to call method 'draw' (a nil value)" error regarding this line hero:draw(x, y) . Any ideas? I'm sure I'm missing something very basic. Edit:...
by Prof_Ants
Mon Feb 20, 2012 2:06 pm
Forum: Support and Development
Topic: Create a waking animation through pictures and keypresses
Replies: 16
Views: 7409

Re: Create a waking animation through pictures and keypresse

Well, if you don't mind :P It's messy and it's inconsistent but what I'm looking to do it assign all directions to be like the hero = walking_up assignment and then eventually have the single image pose when the button is released. but at the moment, the hero = walking_up assignment isn't working as...
by Prof_Ants
Mon Feb 20, 2012 1:32 pm
Forum: Support and Development
Topic: Create a waking animation through pictures and keypresses
Replies: 16
Views: 7409

Re: Create a waking animation through pictures and keypresse

I really should have mentioned they are all in there I was just trying to skim it down and share what parts I thought were relevant. The part I'm unclear on atm is assigning an animation to a direction. All animations function correctly when running independently when I debug.
by Prof_Ants
Mon Feb 20, 2012 1:11 pm
Forum: Support and Development
Topic: Create a waking animation through pictures and keypresses
Replies: 16
Views: 7409

Re: Create a waking animation through pictures and keypresse

I hope no one minds me asking loads of questions... I'm hitting a new brick wall, I'm having trouble assigning animations to the main character. I've been trying to do this: function love.load() require("AnAL") local img = love.graphics.newImage("/hero/heroanime.png") walking_up ...