Need help with a table/entity bullet problem.
Posted: Fri Jan 25, 2013 1:41 pm
Okay so i'm new to both love and programming with lua so i'm having some difficulty getting started.
The basic game i'm working with now is a top down shooter. I'm trying to code everything on my own but i'm having a problem with the bullets all sharing trajectories. If i shoot 1 bullet its no problem but when there are more then 1 bullets fired from 2 different positions their trajectories are shared and i don't know how to make it so they're individually stored.
Anyway,
Left click shoots, mouse aims, and arrow keys move(plan to switch that to wasd at some point).
Thanks for any help, also i respect other solutions to the problem but i mostly want to solve it while gaining an understanding of table/entity dynamics.
Thanks for any help.
The basic game i'm working with now is a top down shooter. I'm trying to code everything on my own but i'm having a problem with the bullets all sharing trajectories. If i shoot 1 bullet its no problem but when there are more then 1 bullets fired from 2 different positions their trajectories are shared and i don't know how to make it so they're individually stored.
Anyway,
Left click shoots, mouse aims, and arrow keys move(plan to switch that to wasd at some point).
Thanks for any help, also i respect other solutions to the problem but i mostly want to solve it while gaining an understanding of table/entity dynamics.
Thanks for any help.