In this method, we will check whether certain keys are hit on the keyboard. This is to turn the plane or change its speed. Also, we make sure that the player can shoot bullets himself and spawn some smoke if the planes are hit. And finally, we make the enemy plane follow the player.
OnObjectUpdatemethod, check whether the object is equal to
Method OnObjectUpdate:Int(obj:ftObject) If obj = g.player Then
If KeyDown(KEY_LEFT) Then obj.SetAngle(-g.eng.GetDeltaTime()/16.0,True)