Hi all! Me again!
The title says it all really, I've tried changing pretty much every parameter in the enemies settings panel and even tried changing the size of the sprite from 32x32 to 8x8, no dice. The game runs fine right until my enemy goes to spawn the projectile, and BOOM crashes. For reference what I'm trying to create is functionally identical to the Imp's ranged attck in Doom.
Many thanks.
Edit - This was my error log -
Source: System.Drawing
Reason: Parameter is not valid.
Stack trace: at System.Drawing.Image.get_Flags()
at System.Windows.Forms.ControlPaint.IsImageTransparent(Image backgroundImage)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle, Color backColor, Point scrollOffset)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e, Rectangle rectangle)
at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs pevent)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)