Re: Simple help needed! (Spamming objects)
Posted: Sat Dec 30, 2017 7:51 am
Hi,
I really liked your artwork in the original post and got inspired to do this. Download the love file, rename it a .zip and look at the source code, it's heavily commented.
It occurred to me that other people getting started might see this thread and want a working example of how to send some arrows flying across the screen. There's an arrow class and a table containing a bunch of instances, each having unique angles, velocities, and accelerations.
Also, when the arrows go too far of the screen to be seen anymore, they get replaced with new arrows back on the other side, ready to fly by again.
I really liked your artwork in the original post and got inspired to do this. Download the love file, rename it a .zip and look at the source code, it's heavily commented.
It occurred to me that other people getting started might see this thread and want a working example of how to send some arrows flying across the screen. There's an arrow class and a table containing a bunch of instances, each having unique angles, velocities, and accelerations.
Also, when the arrows go too far of the screen to be seen anymore, they get replaced with new arrows back on the other side, ready to fly by again.