Search found 3 matches

by Kevinpt8339
Sat Jan 21, 2017 4:21 am
Forum: Support and Development
Topic: Remove object on collision?
Replies: 5
Views: 7220

Re: Remove object on collision?

Ok, so I was able to able to implement a destroy queue like in ivan's post and updated my bullet.lua file to actually be a class as nyenye mentioned. I've run into a small problem though, I'm not sure how to remove the bullet from the bullets table after the body of the instance has been destroyed. ...
by Kevinpt8339
Fri Jan 20, 2017 4:30 am
Forum: Support and Development
Topic: Remove object on collision?
Replies: 5
Views: 7220

Re: Remove object on collision?

Thank you both for the quick replies, I'm definitely going to try those methods out when\if I get time tomorrow. As a visual learner, it is very helpful to see the code written out especially for my specific case here. I appreciate the time you both spent in doing so. Once I get everything working, ...
by Kevinpt8339
Thu Jan 19, 2017 1:19 am
Forum: Support and Development
Topic: Remove object on collision?
Replies: 5
Views: 7220

Remove object on collision?

Hi all, I'm new to Lua programming and Love2d, and need some help to get on the right track. I'm working on a game where a player shoots bullets and when they collide with a crate or a wall, I need for the bullet to be destroyed. After messing around for a while I'm still not able to figure out what...