Keeping track of actor with lowest x position on screen.

pwpw SwedenMember Posts: 6

Hello guys. I've bumped into a problem in my current game. I am currently spawning multiple actors on a random x location on screen, like in tsb's tutorial (). I also want to have a mechanic (a button) that when it's pressed, the lowest of the multiple actors on screen is destroyed, and if pressed again the next one that has the lowest x position is destroyed, etc.

Would it work to have every actor that is spawned on screen check its distance to x = 0 using abs perhaps?

Sign In or Register to comment.