private void Actor_OnPickUp(object sender, PickupEventArgs e) { Actor pickingUpActor = (Actor)sender; String notificationString = "Picked up " + e.itemClassName; FadingLabel notification = new FadingLabel(spriteFont, notificationString); notification.color = Color.LightGreen; notification.dimensions.X = pickingUpActor.hitBox.Center.X - (int)spriteFont.MeasureString(notificationString).X / 2; notification.dimensions.Y = pickingUpActor.hitBox.Center.Y - (int)spriteFont.MeasureString(notificationString).Y / 2 + 40; //notification.setPos(pickingUpActor.hitBox.Center); notifications.Add(notification); }