Hello everyone,
I have this breakout like game that I would like to have the bricks lunge themselves at the player on random intervals.
Currently the setup I have for the bricks is that they are moving left and right until they hit something then switch their direction. I have tried a myriad of (if not silly then stupid) workarounds for the bricks to shoot at the player's position (and not follow him around or stop when they reach the position but continue along like a bullet) but failed.
The bricks have the bullet behavior (that is how they move left and right) but I can't figure out the above; any ideas?
Thank you very much.