Search found 49 matches

by Foxcraft
Thu Jan 15, 2015 6:25 am
Forum: Support and Development
Topic: AI movement
Replies: 9
Views: 4830

Re: AI movement

Hello Maxzolythus, Not sure going by the code standalone. I prefer to play with things in action and see how it relates to the other parts. The way I'd go about it is figuring out what is actually happening to the enemy. If you can better understand what's actually going wrong, then you can better n...
by Foxcraft
Thu Jan 15, 2015 6:03 am
Forum: Support and Development
Topic: Checking World Collision Without Physics
Replies: 6
Views: 5046

Re: Checking World Collision Without Physics

Hey Quisciens, Let's look at the STI demo code (main.lua): -- Load map map = sti.new("map") -- Prepare physics world world = love.physics.newWorld(0, 0) -- Prepare collision objects collision = map:initWorldCollision(world) -- Add a Custom Layer map:addCustomLayer("Sprite Layer",...
by Foxcraft
Wed Jan 14, 2015 3:34 pm
Forum: Support and Development
Topic: Checking World Collision Without Physics
Replies: 6
Views: 5046

Re: Checking World Collision Without Physics

Hey Quisciens, bump.lua is a simple collision system using the idea of basic bounding boxes. As it's been said, you can dedicate a Tiled layer to collisions (either with some sort of overlay collision squares or just draw all colliding objects like the ground and walls in their own layer). So you st...
by Foxcraft
Wed Jan 14, 2015 3:58 am
Forum: Libraries and Tools
Topic: [library] shine - post processing effects for everyone
Replies: 26
Views: 22160

Re: [library] shine - post processing effects for everyone

Awesome work, vrid! :awesome: Very cool.
by Foxcraft
Mon Jan 12, 2015 3:08 am
Forum: Support and Development
Topic: When to use Box2D?
Replies: 7
Views: 8683

Re: When to use Box2D?

I can definitely see how the plastic bag can be stumping. That's a tough one. I think you'd definitely need some custom stuff, even with Box2D (though I don't know much about that). I'd say the most of it is figuring out how to control the wind part, and once you figure that out, the rest might more...
by Foxcraft
Mon Jan 12, 2015 2:12 am
Forum: Support and Development
Topic: Cannot load more the one class object
Replies: 16
Views: 10678

Re: Cannot load more the one class object

I'm still brushing back up in my Lua, but you do start a class setup with a table. But when you try to create something of that class (like b), you have to give it its own fresh, different table. The setmetatable and the __index setting work together to give the new object (b) access to what's in th...
by Foxcraft
Mon Jan 12, 2015 12:07 am
Forum: Support and Development
Topic: Cannot load more the one class object
Replies: 16
Views: 10678

Re: Cannot load more the one class object

Oh, that's right. What I wrote may fix the nil issue, but because badie is being created beforehand, the same badie would be handed out each time. You have to be able to give a new instance each time. So like bartbes said, as well as what your recent bit of code does, you have to make sure you're cr...
by Foxcraft
Sun Jan 11, 2015 11:41 pm
Forum: Support and Development
Topic: Cannot load more the one class object
Replies: 16
Views: 10678

Re: Cannot load more the one class object

Hey savagedogg38, I think it would be good to point out that you are using the SECS library to create your classes. Always try to give info like that. ;) Also, providing the .love file directly helps people play with it and get at it quicker. Anyway, from the recent code and playing with it, I see t...
by Foxcraft
Sun Jan 11, 2015 10:44 pm
Forum: Support and Development
Topic: When to use Box2D?
Replies: 7
Views: 8683

Re: When to use Box2D?

Hey Seltzer, I think you need to figure out what you want to do and deal with. If it's just a matter of getting your math straight for something like jumping, you might not need a whole new system to handle what you want to do, you just need to understand what you need to deal with. You can really u...
by Foxcraft
Sun Jan 11, 2015 8:40 pm
Forum: Games and Creations
Topic: A classic JRPG
Replies: 19
Views: 15637

Re: A classic JRPG

Awesome work there, retropower! Thanks for the extra inspiration, from just sharing your work and what you were able to do. :D

I'll definitely have to sit and take a look at the Greentea library you made.