Search found 58 matches

by Lua Hal
Wed Aug 17, 2011 12:11 am
Forum: Support and Development
Topic: Making a simple "language"
Replies: 6
Views: 1606

Making a simple "language"

I'm doing it for fun, and my friend. My friend only knows how to use batch files, so I'm going to make it very similar to them, my problem is this: How would I get text to wrap if a bool is set? function love.load() --constants line=0 end function love.draw() function getTextWidth(text) return love....
by Lua Hal
Mon Jul 25, 2011 1:13 am
Forum: Support and Development
Topic: How do you write multiple lines to a file?
Replies: 4
Views: 1719

Re: How do you write multiple lines to a file?

TechnoCat wrote:A line break in strings is written as '\n'.
Thanks!
by Lua Hal
Mon Jul 25, 2011 1:01 am
Forum: Support and Development
Topic: How do you write multiple lines to a file?
Replies: 4
Views: 1719

Re: How do you write multiple lines to a file?

Kadoba wrote:Write one line multiple times? :crazy:

Where exactly in the wiki are you referring to?
http://love2d.org/wiki/love.filesystem.write

It's just a string.
by Lua Hal
Mon Jul 25, 2011 12:50 am
Forum: Support and Development
Topic: How do you write multiple lines to a file?
Replies: 4
Views: 1719

How do you write multiple lines to a file?

The wiki just says how to write one line.
by Lua Hal
Sun Jul 17, 2011 5:30 pm
Forum: Support and Development
Topic: Not executing properly?
Replies: 3
Views: 1238

Re: Not executing properly?

Thanks guys, I was using

Code: Select all

love.something.load("blah.txt")()
I seemed to have replaced a line.
by Lua Hal
Sun Jul 17, 2011 4:04 pm
Forum: Support and Development
Topic: Not executing properly?
Replies: 3
Views: 1238

Not executing properly?

main.lua function gpx() return playx+19 end function gpy() return playy+19 end function draw(object,X,Y,rotation,flipx,flipy) --ENUM, number, number, number, bool, bool height=object:getHeight() width=object:getHeight() love.graphics.draw(object, X + width/2, Y + height/2, math.rad(rotation), flipx ...
by Lua Hal
Sun Jul 17, 2011 4:01 pm
Forum: Support and Development
Topic: What is wrong with this formula?
Replies: 6
Views: 1846

Re: What is wrong with this formula?

Robin wrote:
Lua Hal wrote:+1 karma
You know you can click that big + sign under my avatar for that, right? ;)
That's what I did.
by Lua Hal
Sat Jul 16, 2011 9:47 pm
Forum: Support and Development
Topic: Getting C++ Runtime errors?
Replies: 5
Views: 1782

Re: Getting C++ Runtime errors?

Valid x and y values for ImageData:setPixel() and ImageData:getPixel() start at 0 and go up to image width and height minus 1. LÖVE 0.7.2 terminates if you get or set stuff out of range. That's changed for the next version. Lua Hal. ImageData pixel indices are integer values from [0,width) and [0,h...
by Lua Hal
Sat Jul 16, 2011 9:05 pm
Forum: Support and Development
Topic: Getting C++ Runtime errors?
Replies: 5
Views: 1782

Re: Getting C++ Runtime errors?

Nope, didn't work. D:
by Lua Hal
Sat Jul 16, 2011 6:56 pm
Forum: Support and Development
Topic: Getting C++ Runtime errors?
Replies: 5
Views: 1782

Getting C++ Runtime errors?

Runtime Error! Program: C:\Program Files\LOVE\love.exe This application has requested the Runtime in an unusual way. Please contact the application's support team for more information. I get that error whenever I run: function draw(object,X,Y,rotation,flipx,flipy) --ENUM, number, number, number, bo...