Search found 58 matches
- 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....
- 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?
Thanks!TechnoCat wrote:A line break in strings is written as '\n'.
- 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?
http://love2d.org/wiki/love.filesystem.writeKadoba wrote:Write one line multiple times?
Where exactly in the wiki are you referring to?
It's just a string.
- 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.
- 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 I seemed to have replaced a line.
Code: Select all
love.something.load("blah.txt")()
- 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 ...
- 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?
That's what I did.Robin wrote:You know you can click that big + sign under my avatar for that, right?Lua Hal wrote:+1 karma
- 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...
- 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:
- 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...