Search found 1154 matches

by davisdude
Sun May 26, 2013 7:56 pm
Forum: Support and Development
Topic: Tile-Based Movement
Replies: 8
Views: 3533

Re: Tile-Based Movement

Ohhhhh! Thanks! Do you know if there's another way to do that aside from returning a value?
by davisdude
Sun May 26, 2013 7:07 pm
Forum: Support and Development
Topic: Tile-Based Movement
Replies: 8
Views: 3533

Tile-Based Movement

So I'm working on a tile-based game. Right now it's pretty simple. It's a small map, with 3 different object types. Anyway, I've started by making the left tile-movement, which worked fine. Then, I tried making the right tile movement and something peculiar happened: It went all the way across the m...
by davisdude
Sat May 11, 2013 11:38 am
Forum: Support and Development
Topic: Tile Movement Problem
Replies: 2
Views: 1799

Re: Tile Movement Problem

My bad. I thought I had posted one.
I know that returning the value looks like it has no effect, but omitting the return would make the white tile to go all the way across the screen.
by davisdude
Sat May 11, 2013 1:00 am
Forum: Support and Development
Topic: Pixel problem when moving drawings
Replies: 5
Views: 2089

Re: Pixel problem when moving drawings

If you don't know how to do that, just do something like this:

Code: Select all

love.graphics.draw( 'name', math.floor(name.x), math.floor(name.y))
by davisdude
Sat May 11, 2013 12:51 am
Forum: Support and Development
Topic: Tile Movement Problem
Replies: 2
Views: 1799

Tile Movement Problem

I'm trying to expand my horizons and make a simple little tile game, but I'm having a bit of trouble moving the character. When the 'right' key is released, the player moves over 1 to the right and changes the tile where it was to air. I tried several things, and ended up with a semi-decent solution...
by davisdude
Fri May 10, 2013 11:36 pm
Forum: Support and Development
Topic: Tilemap filling the whole screen & Smooth movement
Replies: 9
Views: 2314

Re: Tilemap filling the whole screen & Smooth movement

For some reason only part 1 and 0 worked for me. Not scrolling or entities.
by davisdude
Fri May 10, 2013 1:33 am
Forum: Support and Development
Topic: [SOLVED]Require all files in a folder
Replies: 15
Views: 18724

Re: Require all files in a folder

So it would be easier if you at least put an example of your code as a reference, but I think I know what you want.
In your main.lua put require "NAME_OF_FOLDER/NAME_OF_FILE"
Don't actually put NAME_OF_FOLDER and whatever. I think you know what I mean. :awesome:
by davisdude
Thu May 09, 2013 11:25 am
Forum: Support and Development
Topic: Player collision (with other player)???
Replies: 8
Views: 2995

Re: Player collision (with other player)???

This website has probably everything you'll never want to know about lua: http://www.lua.org/manual/5.1/manual.html It's pretty huge, so press ctrl and f then search for for . They're pretty much the only data type that lua has, so I could suggest getting nice and smiley with them for future referen...
by davisdude
Wed May 08, 2013 5:13 pm
Forum: Games and Creations
Topic: Slime Ball
Replies: 35
Views: 19908

Re: Slime Ball

Thanks! :awesome:
by davisdude
Wed May 08, 2013 11:03 am
Forum: Games and Creations
Topic: Slime Ball
Replies: 35
Views: 19908

Re: Slime Ball

How you got it to save like that. I think you would use love.event.push or something, but I don't know...
Thanks! :awesome: