Back to Problem Solutions forum
please give me a hint in what direction to move
Read the instructions given with the problem carefully
First figure out how the coardinates should change like if we move diagonally Then think of how to incorporate direction into it so that the text moves in the direction specified by us. Keep track of the position of text and make some checks to see if the text is crossing the borders of the screen and if it does change the direction appropriately.
Good Luck !!