hi there! I am a newbie.
Can someone be kind to explain to me the 'idea' behind containing the sprite within the screen. I m trying to move a simple image with GetInput methods from the keyboard. It does move when I press a key, but it just goes on and on untill it disappears. How to stop it when it reaches the wall?
I tried searching the forum for a long time, tried some people's code, but I couldn't understand it , as each have their own ways.