OK let's say you have a game loop:
VAR GO=1 WHILE GO _INPUT _UPDATE _DRAW WENDThe _INPUT function will be something like:
DEF _INPUT VAR BT=BUTTON() VAR TX,TY STICK OUT TX,TY IF BT AND #A THEN 'A button pressed VEL_Y=-50 'Set player velocity END IF VEL_X=TX 'Set x velocity to direction of stick ENDThe _UPDATE function will check that the player velocity doesn't exceed a certain value, then move the player by adding its x and y velocity values to its x and y position values. Then it will check that the player's new position isn't outside the game area (eg the screen) and cancel it's velocity and reset its position if it is. The _DRAW function will simply iterate through your game objects and draw them to the screen. Hope this helps?