Delegates

Yes I’m still working on it
Just learning up on delegates
…. Solved a problem I’ve been having with them

Now I can create a short custom function to bullets and they’ll behave accordingly

The motivation behind this one was to make bullets move in a wave pattern

The bullet would travel in a straight line, and a modifier function would move the bullet side to side based on a trig function

It’s so I don’t have to create a big function specifically for wave bullets on my bullet generator. I can just put the function contents in the initialization part of the pattern that uses it

image