Page 2 of 2

Re: Simple help needed! (Spamming objects)

Posted: Sat Dec 30, 2017 7:51 am
by jojomickymack
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.
arrows.gif
arrows.gif (228.39 KiB) Viewed 1914 times

Re: Simple help needed! (Spamming objects)

Posted: Sat Dec 30, 2017 8:56 am
by Tricky
You are very kind. But you you are right, this is a good example code demo (and as well in GW-BASIC,Pascal, Lua, BlitzBasic, BlitzMax, php and Go, I did learn a lot by code analysis. Trying to see how others did it).

Re: Simple help needed! (Spamming objects)

Posted: Mon Jan 08, 2018 1:09 pm
by loser123
Thank you so much jojomickymack!!
(Sorry for not answering, I was travelling :c )