I've coded it so that you can drag the sprite and if its x position is 30 greater or lower than (0,0) [the centre], then it will change to the costume that appears to be running (costume 2). You can backpack/edit the code to achieve the purpose you want. =)