I don't use the pointer commands if I think there's a chance the player will be touching the screen with more than 1 finger and instead use the touch commands instead.
A simple example:
SetWindowSize(800,480,0)
SetVirtualResolution(800,480)
player_spr = CreateSprite(0)
SetSpriteSize(player_spr,40,40)
player_xpos# = 400
player_ypos# = 240
player_speed# = 2.5
do
// flag
move_left = 0
move_right = 0
// get touch events
touch_a = GetRawFirstTouchEvent(1)
touch_b = GetRawNextTouchEvent()
// get information about touch
touch_a_x = GetRawTouchStartX(touch_a)
touch_b_x = GetRawTouchStartX(touch_b)
// for touch a
if touch_a > 0
if touch_a_x > 400
move_right = 1
else
move_left = 1
endif
endif
// for touch b
if touch_b > 0
if touch_b_x > 400
move_right = 1
else
move_left = 1
endif
endif
// move the sprite
player_xpos# = player_xpos# + (move_right-move_left)*player_speed#
SetSpritePositionByOffset(player_spr,player_xpos#,player_ypos#)
print("touch_a : " + str(touch_a))
print("touch_b : " + str(touch_b))
print("move_left : " + str(move_left))
print("move_right : " + str(move_right))
sync()
loop
I did this for someone else on this thread so you can see what I was trying to do - it may or may not be relevant to what you're doing.
I still use the pointer command for things like menus where it doesn't matter so much if the player mashes the screen with their stubby, sausage fingers.