Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Easy FPS Editor v1.6

Simple way to create an old-school First Person Shooter! · By JessicoChan

Game crashes on enemy projectile spawn

A topic by SixSausageSunday created Apr 29, 2022 Views: 222 Replies: 4
Viewing posts 1 to 3
(1 edit)

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)

did you change the name of the projectile sprite in the sprites/enemies folder?

Not intentionally I don't think, I just imported the .png the same as I have for everything else.

So it's just fixed itself and I've no idea how or why. GAME DEVELOPMENT.

well that's good.