Search found 20 matches
- Wed May 04, 2011 3:35 pm
- Forum: Support and Development
- Topic: String expected Got nil
- Replies: 10
- Views: 4928
Re: String expected Got nil
Very bloody low I noticed as I tried to go further with this..
- Tue Apr 05, 2011 6:08 pm
- Forum: Support and Development
- Topic: String expected Got nil
- Replies: 10
- Views: 4928
Re: String expected Got nil
Tried a font, first it ran correctly without problems
But I added fontbig ( 32pt one, same font ) and now code does not recognises it?
But I added fontbig ( 32pt one, same font ) and now code does not recognises it?
- Tue Apr 05, 2011 3:05 pm
- Forum: Support and Development
- Topic: String expected Got nil
- Replies: 10
- Views: 4928
Re: String expected Got nil
How am I supposed to call it
love.load() at the line 1?
and if you mean "state" or "statet", they are just here because I'm new to Lua and general coding (would you suggest better ways to handle my variables and so?)
love.load() at the line 1?
and if you mean "state" or "statet", they are just here because I'm new to Lua and general coding (would you suggest better ways to handle my variables and so?)
- Tue Apr 05, 2011 2:55 pm
- Forum: Support and Development
- Topic: String expected Got nil
- Replies: 10
- Views: 4928
Re: String expected Got nil
Loads of code commented in case I forget what I wrote
Also I need help with using vars.lua, can I use variables from there to main or other scripts?
EDIT: Image in your signature is pretty scary
Also I need help with using vars.lua, can I use variables from there to main or other scripts?
EDIT: Image in your signature is pretty scary
- Tue Apr 05, 2011 2:35 pm
- Forum: Support and Development
- Topic: String expected Got nil
- Replies: 10
- Views: 4928
Re: String expected Got nil
the problem is not because of printf as if I add ' ' or " " to the ends of story, it just accepts it but I need that for a timer that replaces the variable story also is there a way that I can store all my variables in another lua file to keep love.load tidy? EDIT: Ran the code, "vari...
- Tue Apr 05, 2011 2:16 pm
- Forum: Support and Development
- Topic: String expected Got nil
- Replies: 10
- Views: 4928
String expected Got nil
Code: Select all
function love.load()
timert = 4.0
statet = 0
story = "none"
end
function love.draw()
love.graphics.printf(story, 48, 144, 500, 'center')
end
- Sun Apr 03, 2011 9:19 am
- Forum: Support and Development
- Topic: Using sprites from a tileset
- Replies: 20
- Views: 6392
Re: Using sprites from a tileset
I was to say that problem was caused after I require movement
EDIT: Fixed it, I just took newImage and newQuad to love.draw...
EDIT: Fixed it, I just took newImage and newQuad to love.draw...
- Sun Apr 03, 2011 9:01 am
- Forum: Support and Development
- Topic: Using sprites from a tileset
- Replies: 20
- Views: 6392
- Sun Apr 03, 2011 8:54 am
- Forum: Support and Development
- Topic: Using sprites from a tileset
- Replies: 20
- Views: 6392
Re: Using sprites from a tileset
Now, I included another lua file for movement but it 'expects' user data
draw
load
draw
Code: Select all
love.graphics.drawq(dwarves, char, x1, y1)
Code: Select all
char = love.graphics.newQuad(0, 0, 24, 24, 360, 24)
dwarves = love.graphics.newImage("dwarves.png")
- Sun Apr 03, 2011 8:39 am
- Forum: Support and Development
- Topic: Using sprites from a tileset
- Replies: 20
- Views: 6392
Re: Using sprites from a tileset
In case state changes, will draw entities will disappear?
EDIT: Yes they do, thanks for the help again
EDIT: Yes they do, thanks for the help again