Bullet Firing with Diddy - phone safe GC wise?

Monkey Forums/Monkey Programming/Bullet Firing with Diddy - phone safe GC wise?

Amon(Posted 2011) [#1]
I'm a little stuck. Everything in my game so far is fine except bullet firing, it all seems to be borking bad because I'm not yet fully understanding everything about Monkey + Diddy.

Could I get a code example of a method of firing bullets from a ship using Diddy and also ensuring it is Phone safe GC wise i.e. not really New()ing a fresh bullet each time thus if you were doing this 100 times or so to account for enemies the GC wouldn't C64 a phones backside?

Please!


therevills(Posted 2011) [#2]
Very quickly done:




Amon(Posted 2011) [#3]
Love it, thanks! :)