Search found 42 matches

by AlexCalv
Thu Apr 05, 2018 2:31 am
Forum: Support and Development
Topic: Tile map drawing (Drawable expected, got nil)
Replies: 3
Views: 569

Re: Tile map drawing (Drawable expected, got nil)

It may be an issue with lua not allowing you to index strings like tables? Your first code block treats map as a 2 dimensional table, but the second one has it be a 1D one with strings in it. You can't index strings with []. Yeah I ended up taking a nap and fixed it when I woke up. The map needed t...
by AlexCalv
Wed Apr 04, 2018 7:18 pm
Forum: Support and Development
Topic: Tile map drawing (Drawable expected, got nil)
Replies: 3
Views: 569

Tile map drawing (Drawable expected, got nil)

This is map drawing code function draw_map() for y = 1, map_display_h do for x = 1, map_display_w do love.graphics.draw(tile[map[y+map_y][x+map_x]],0,0) --love.graphics.draw(tile[map[2][2]],0,0) --love.graphics.draw(tile[level[y][x]], x*50, y*50) --love.graphics.draw(tiles, x*50, y*50) --love.graphi...
by AlexCalv
Tue Sep 27, 2016 6:46 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 775
Views: 170438

Re: Simple Tiled Implementation - STI v0.16.0.3

Karai17 wrote:So you want to mouse over an STI object to determine what kind of units can be placed there?
Correct. I also wanted to know if I can use a polygon shape as like a "rail" for my enemies to follow. Or if I have to use a pathfinding algorithm.
by AlexCalv
Mon Sep 26, 2016 7:14 am
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 775
Views: 170438

Re: Simple Tiled Implementation - STI v0.16.0.3

Each object has a properties table you can access, so you can give an object properties such as flags to let your program know what can be built there. Right, I understand I need to do that. But I don't understand your documentation because of lack of examples. function tower.PlaceAtMouse(x, y) for...
by AlexCalv
Sat Sep 24, 2016 6:22 pm
Forum: Libraries and Tools
Topic: Simple Tiled Implementation - STI v1.2.3.0
Replies: 775
Views: 170438

Re: Simple Tiled Implementation - STI v0.16.0.3

I'm having a tough time understanding how to implement STI into my game. I'm making a tower defense game and what I have setup are rectangle objects in areas that towers CAN be placed on, and I have a polygon shape object created to specify the path that I wanted enemies to take. I have no idea how ...
by AlexCalv
Sat Jul 04, 2015 7:39 am
Forum: Support and Development
Topic: [Solved]How to create "explosions" no PS or Physics?
Replies: 2
Views: 610

Re: How to create "explosions" no PS or Physics?

Hey, you are on the right track. The change you need is this: When you spawn one of the small particles, you need to give it a random x- and y-velocity once. Then while it is flying do not use any randomness, but only physics. Here are the lines you need to change: function particles.Spawn(x, y, am...
by AlexCalv
Sat Jul 04, 2015 7:18 am
Forum: Support and Development
Topic: [Solved]How to create "explosions" no PS or Physics?
Replies: 2
Views: 610

[Solved]How to create "explosions" no PS or Physics?

I'm trying to create a sort of sim where you can launch fireworks and they explode and whatnot. I'm avoiding the particle system and physics modules entirely. I can't for the life of me figure out how to make my particles actually, like, fly out however. I really want to just avoid the modules Love ...
by AlexCalv
Wed Feb 25, 2015 2:05 pm
Forum: Support and Development
Topic: window variables problems after changing window mode
Replies: 6
Views: 887

Re: window variables problems after changing window mode

Oh you mean going into fullscreen, and then go back to windowed mode?
by AlexCalv
Wed Feb 25, 2015 5:42 am
Forum: Support and Development
Topic: window variables problems after changing window mode
Replies: 6
Views: 887

Re: window variables problems after changing window mode

All buttons work for me the same way they do in windowed mode.

Windows 7 1920x1080
by AlexCalv
Fri Feb 20, 2015 12:44 pm
Forum: General
Topic: LÖVE 0.9.2 Released
Replies: 59
Views: 51893

Re: LÖVE 0.9.2 Released

rmcode wrote:What OS are you using?
Windows 7