if (state == 0) { image_speed = 0 sprite_index = sTorizoWalk image_index = 0 x += 16 } if (turning == 1) turning = 0