Cast frame_pointer to int (in case your tweening its value so it becomes a float.