Bug Issue: Killing an actor in 'When Drawing' crashes game on Windows


Pages: 1

Raiyumi

  • Subscriber - Stencyl Studio
  • *
April 25, 2018, 06:45:57 pm
Currently on build 9862.

I noticed when killing an actor or triggering an event in "When Drawing" it'll crash the game on Windows.


rob1221

  • Master Stencyler
  • *
April 26, 2018, 06:22:21 am
I'm unable to reproduce this problem.  Do you have a sample game?
  • Status changed from New to Need Info


Raiyumi

  • Subscriber - Stencyl Studio
  • *
April 26, 2018, 02:25:58 pm
Just went through the game to pinpoint the problem.. it seems to be caused by having 2 actors drawing and having 1 of them dying.

Attached the sample game.
« Last Edit: April 26, 2018, 02:27:05 pm by Raiyumi »


New attachment added by Raiyumi - April 26, 2018, 02:26:50 pm


rob1221

  • Master Stencyler
  • *
April 26, 2018, 04:39:05 pm
When actors are killed, their x and y positions are set to 1 million, although I don't know why that is.  Since the drawing event needs to finish even after killing the actor, you end up trying to draw text over a million pixels to the right and down and apparently OpenFL can't handle that.  Putting a stop block right after the kill block avoids this problem.  I could just get rid of that 1 million code but I don't know what consequences that would have.
  • Status changed from Need Info to Confirmed


Justin

  • Master Stencyler
  • *
April 26, 2018, 05:33:41 pm
It would be better not to have game logic like that in the when drawing event.


Raiyumi

  • Subscriber - Stencyl Studio
  • *
April 27, 2018, 10:28:28 am
Interesting how it needs to finish the drawing event after killing the actor.

Yeah, I usually tend to put the 'kill self' in there if I'm doing things fast.. since I thought it triggers somewhat similar to "Always" just with fps.


Pages: 1

Details

  • Reported
    April 25, 2018, 06:45:57 pm
  • Updated
    April 27, 2018, 10:28:28 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Confirmed
  • Priority
    Normal
  • Version
    3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    (none)
  • Category
    Engine

Tags


Attachments

* CrashTestEdit2.stencyl (1309.69 kB - downloaded 9 times.)