We’ll have a number of UFOs in space who are able to avoid each other and the edge of the screen. This would be an easy task by writing a few simple steering behaviours for each UFO to follow but that is not in the spirit of our overall goal, which is:
Have 60+ UFOs onscreen that have taught themselves to avoid each other and the sides of their environment.
Now we can use the window in our OnCreate method to position our UFO.
The last step is to set a random movement direction for our UFOs. In OnCreate, change: