Bug Issue: Actors created on paused game are not paused


Pages: 1

Luyren

  • Master Stencyler
  • *
August 10, 2018, 12:47:05 pm
b9962, running on Windows 10.

Bug happens on Flash and Windows Export, didn't confirm on others.
If you pause the game and create an actor, that actor will not be paused (performing always events and timed tasks). Actor is set to "can be paused".  Although pausing the game after creation properly pauses the actors, I expected them to be paused when created.

Sample game: the actor has a print block on an always event printing "Self". Pressing enter on the scene will pause the game, and clicking with the mouse will create another actor. The print will show that the new actor is executing the always event.
« Last Edit: August 10, 2018, 12:48:09 pm by Luyren »


New attachment added by Luyren - August 10, 2018, 12:47:18 pm


rob1221

  • Master Stencyler
  • *
August 11, 2018, 06:54:29 am
Fixed in b9972.
  • Status changed from New to Resolved
  • Issue Assigned from (none) to rob1221


Luyren

  • Master Stencyler
  • *
August 11, 2018, 09:45:22 am
b9972
Problem still persists with no changes.


rob1221

  • Master Stencyler
  • *
August 11, 2018, 11:01:58 am
I modified the sample game to have the actors move rather than flooding the logs because I know there are issues when you have hundreds of log messages per second.  The logs you're seeing might just be the old ones catching up.
« Last Edit: August 11, 2018, 11:02:52 am by rob1221 »


Luyren

  • Master Stencyler
  • *
August 11, 2018, 12:24:59 pm
I replaced the print with the "Back and Forth Horizontally" built-in behavior, and I still have this problem. The initial actor is moving, I pause the game and it stops.  Any new actors I add start moving horizontally with the game paused, and collide with each other as normal (though the paused actor doesn't move, as expected). Pausing the game again will pause all the actors. I even cleaned the project, but no changes.


rob1221

  • Master Stencyler
  • *
August 11, 2018, 01:00:09 pm
I don't know why that would be happening on your end but not mine.  In Engine.hx, does your getRecycledActorOfType() function look like this?
Code: [Select]
var a:Actor = getRecycledActorOfTypeOnLayer(type, x, y, getLayerByOrder(layerConst).ID);

if (Engine.paused)
{
a.updateDrawingMatrix();
a.pause();
}

return a;


Luyren

  • Master Stencyler
  • *
August 11, 2018, 01:33:43 pm
Is it the one under haxe\lib\stencyl\1,00\com\stencyl? I have only one version of Stencyl installed, so I think I got the right one. I also double-checked that I am in b9972.
I searched for getRecycledActorofType and none of the functions matched your code. I also tried searching the first line of your code directly, but nothing matched as well.


Justin

  • Master Stencyler
  • *
August 11, 2018, 01:50:44 pm
Something probably broke in the build server in the past couple of builds. I'd assume it's fine now so an update might fix it.


Luyren

  • Master Stencyler
  • *
August 12, 2018, 11:02:52 am
For the record, b9973 still has this issue.


rob1221

  • Master Stencyler
  • *
August 12, 2018, 12:16:56 pm
I don't see the changes there in the downloaded build, but the build numbers on the nightly builds page still updates which is usually not the case when there is an issue with the build server.


Justin

  • Master Stencyler
  • *
August 12, 2018, 02:48:46 pm
I'll look into it.


Justin

  • Master Stencyler
  • *
August 16, 2018, 03:02:40 am
Sorry for the delay here, I've fixed the build server. Should be fine to grab the latest now.


Luyren

  • Master Stencyler
  • *
August 16, 2018, 09:26:07 am
Sorry for the delay here, I've fixed the build server. Should be fine to grab the latest now.
No problem. Fix confirmed on b9975.


Pages: 1

Details

  • Reported
    August 10, 2018, 12:47:05 pm
  • Updated
    August 16, 2018, 09:26:07 am

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

Tags


Attachments

* Pause Game Test.stencyl (768.68 kB - downloaded 6 times.)