Bug Issue: Actors recreated have shorter first frames of animation


Pages: 1

Luyren

  • Master Stencyler
  • *
September 11, 2015, 06:54:23 am
b8671, Windows 8, Widows Standalone (Flash doesn't seem to have this issue)

1- Create an actor
2- Kill the actor at the end of its animation
3- Recreate the actor

Print statements show that the first frame of the animation is not played fully after the first actor is created. I've had instances where the first frame was completely skipped. Attached is a test game (click to spawn an actor that dies at the end of its animation), and also the logs with the print statements, where I created 5 actors one after the other. It prints the current frame of the animation every frame, and all the frames of the animation on the test game are set to 50ms.
« Last Edit: September 11, 2015, 08:13:47 am by Luyren »


New attachment added by Luyren - September 11, 2015, 06:54:44 am


New attachment added by Luyren - September 11, 2015, 06:54:55 am


captaincomic

  • Master Stencyler
  • *
October 27, 2015, 06:18:33 pm
Confirmed on Linux Standalone (I'm also not seeing it on Flash).
  • Status changed from New to Confirmed


letmethink

  • Master Stencyler
  • *
October 28, 2015, 05:32:19 am
It's not too surprising that it doesn't appear on flash since flash uses BitmapAnimation while both Linux and Windows use SheetAnimation. It can be fixed fairly easily by sharing the 'setFrame' function between the two. For now I have just copied it across and submitted a PR. (https://github.com/Stencyl/stencyl-engine/pull/12)

The issue was that the internal timer for the frames wasn't being reset when you specifically set it to a frame for SheetAnimation (while it was for BitmapAnimation).
« Last Edit: October 28, 2015, 01:00:50 pm by letmethink »


Issue updated by letmethink - October 28, 2015, 01:00:50 pm
  • Status changed from Confirmed to Resolved


Luyren

  • Master Stencyler
  • *
October 31, 2015, 03:59:08 pm
Fix confirmed on Windows export.
« Last Edit: October 31, 2015, 03:59:27 pm by Luyren »


Issue updated by Justin - October 31, 2015, 04:10:49 pm
  • Issue Assigned from (none) to letmethink
  • Status changed from Resolved to Closed


Pages: 1

Details

  • Reported
    September 11, 2015, 06:54:23 am
  • Updated
    October 31, 2015, 04:10:49 pm

  • View Status
    Public
  • Type
    Bug
  • Status
    Closed
  • Priority
    Normal
  • Version
    3.3.2
  • Fixed in
    (none)
  • Assigned to
    letmethink
  • Category
    Engine

Tags


Attachments

* Test3.stencyl (286.21 kB - downloaded 78 times.)
* log-2015-09-11.zip (66.11 kB - downloaded 85 times.)