Search found 61 matches

by SudoCode
Thu May 10, 2012 6:40 pm
Forum: Support and Development
Topic: Complete Newb.
Replies: 14
Views: 4546

Re: Complete Newb.

Sonichu97 wrote:
Kadoba wrote:Try this:

-snip-
Hmm, still a black screen.
Do I have an incorrect file path or something? :/

Are you calling love.draw?
by SudoCode
Wed May 09, 2012 9:58 pm
Forum: Support and Development
Topic: Tile-based Collisions: getting stuck
Replies: 14
Views: 8906

Re: Tile-based Collisions: getting stuck

Doing it manually is possible, and the code can be actually very easy to understand; but writing it is a bit trickier than it might seem. I've been wanting to write an article on this, but I just lack the time right now. In the meantime, if you feel adventurous, you might want to give a look at thi...
by SudoCode
Wed May 09, 2012 7:37 pm
Forum: Support and Development
Topic: Importing ATL tile properties
Replies: 8
Views: 2216

Re: Importing ATL tile properties

Thanks, I'm able to draw shapes at the solid tiles now :awesome:

And what do you mean by global values? My global variables?
by SudoCode
Wed May 09, 2012 3:43 pm
Forum: Support and Development
Topic: Importing ATL tile properties
Replies: 8
Views: 2216

Re: Importing ATL tile properties

It looks like the problem is in collide.lua function collide(dt, shape_a, shape_b, dx, dy) shape_a = player.hitbox shape_b = testshape shape_a:move(math.floor(dx), math.floor(dy)) end That's setting shape_a to the player and moving it when any shape collides. You probably want something more like t...
by SudoCode
Wed May 09, 2012 1:22 am
Forum: Games and Creations
Topic: Battle Cry v0.1.3 - Depth, Camera, Ghost!
Replies: 27
Views: 8457

Re: Battle Cry v0.1.1

New version works fine.
by SudoCode
Tue May 08, 2012 11:54 pm
Forum: Support and Development
Topic: Importing ATL tile properties
Replies: 8
Views: 2216

Re: Importing ATL tile properties

Thanks for the help.

The problem now is that iterate() seems to be adding rectangles everywhere - when I load the game, I'm immediately moved on the x axis very quickly, as if being moved out of a shape.
by SudoCode
Tue May 08, 2012 10:40 pm
Forum: Games and Creations
Topic: Battle Cry v0.1.3 - Depth, Camera, Ghost!
Replies: 27
Views: 8457

Re: Battle Cry v0.1.0

Code: Select all

lib/love-loader.lua:154: Could not open file lib/love-loader.lua. Does not exist.
When running it as a .love or opening the folder in love.
by SudoCode
Tue May 08, 2012 5:39 pm
Forum: Support and Development
Topic: Importing ATL tile properties
Replies: 8
Views: 2216

Importing ATL tile properties

function loadMap() column = {} tileID = 0 loader = require("AdvTiledLoader.Loader") loader.path = "assets/maps/" Map = loader.load("test.tmx") -- Tile Properties for Dirt, tileLayer in pairs(Map.tileLayers) do for y, column in pairs(tileLayer) do for x, tileID in pairs...
by SudoCode
Mon May 07, 2012 8:59 pm
Forum: Support and Development
Topic: Could use some help before moving forward
Replies: 4
Views: 1907

Re: Could use some help before moving forward

Ooh, I found a great diagonal movement implementation back when I was working with flash. Let me see if I can port it to lua... Now, I could try and work that more into your code, but you've probably changed it since you uploaded your code due to the help of Zeliarden, so I'll let you do it yoursel...
by SudoCode
Mon May 07, 2012 5:47 pm
Forum: Support and Development
Topic: Water Program
Replies: 4
Views: 2528

Re: Water Program

cleanwaterstore wrote:Creating the figures of two races and how they move is not a big problem, but the problem is when it comes to walking in land or water, it seems like they are floating in the air. I wonder what to do to make them to look them real in walking through land and water.
Are they animated?