Search found 20 matches

by Evrim
Wed May 04, 2011 3:35 pm
Forum: Support and Development
Topic: String expected Got nil
Replies: 10
Views: 1347

Re: String expected Got nil

Very bloody low I noticed as I tried to go further with this..
by Evrim
Tue Apr 05, 2011 6:08 pm
Forum: Support and Development
Topic: String expected Got nil
Replies: 10
Views: 1347

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?
by Evrim
Tue Apr 05, 2011 3:05 pm
Forum: Support and Development
Topic: String expected Got nil
Replies: 10
Views: 1347

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?)
by Evrim
Tue Apr 05, 2011 2:55 pm
Forum: Support and Development
Topic: String expected Got nil
Replies: 10
Views: 1347

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
by Evrim
Tue Apr 05, 2011 2:35 pm
Forum: Support and Development
Topic: String expected Got nil
Replies: 10
Views: 1347

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, "variable story not ...
by Evrim
Tue Apr 05, 2011 2:16 pm
Forum: Support and Development
Topic: String expected Got nil
Replies: 10
Views: 1347

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
story is a string, but it gives an error of being nil
by Evrim
Sun Apr 03, 2011 9:19 am
Forum: Support and Development
Topic: Using sprites from a tileset
Replies: 20
Views: 1390

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...
by Evrim
Sun Apr 03, 2011 9:01 am
Forum: Support and Development
Topic: Using sprites from a tileset
Replies: 20
Views: 1390

Re: Using sprites from a tileset

http://ul.to/wphqziif

Hoping that I uploaded correctly
by Evrim
Sun Apr 03, 2011 8:54 am
Forum: Support and Development
Topic: Using sprites from a tileset
Replies: 20
Views: 1390

Re: Using sprites from a tileset

Now, I included another lua file for movement but it 'expects' user data

draw

Code: Select all

love.graphics.drawq(dwarves, char, x1, y1)
load

Code: Select all

char = love.graphics.newQuad(0, 0, 24, 24, 360, 24)
dwarves = love.graphics.newImage("dwarves.png")
by Evrim
Sun Apr 03, 2011 8:39 am
Forum: Support and Development
Topic: Using sprites from a tileset
Replies: 20
Views: 1390

Re: Using sprites from a tileset

In case state changes, will draw entities will disappear?

EDIT: Yes they do, thanks for the help again