Bug Issue: When sliding twice in a row, cannot set x and y


Pages: 1

yoplalala

  • Subscriber - Stencyl Studio
  • *
June 08, 2016, 02:12:39 pm
http://community.stencyl.com/index.php/topic,48018.msg266424.html#msg266424

when you slide the second time before when the first slide is finished.

public function onTweenPositionComplete()   https://github.com/Stencyl/stencyl-engine/blob/1d01fad4f6a5adac6c4a1a49cb043239d43d9666/com/stencyl/models/Actor.hx#L3382 activates only once

so the activePositiontweens are > 0
and the updateTweenProperties()  https://github.com/Stencyl/stencyl-engine/blob/1d01fad4f6a5adac6c4a1a49cb043239d43d9666/com/stencyl/models/Actor.hx#L3382
continues to update to the position of the tween instead of the set position by the user

Resolution .

Simply in

public function onTweenPositionComplete()
   {
      updateTweenProperties();
      activePositionTweens--;   <---  put activePostionTweens = 0;
      
      if (currOffset != null)
      {
         resetReal(realX, realY);
      }
   }

Should have no negative consequences as you cannot do rwo slides at the same time.


rob1221

  • Master Stencyler
  • *
December 27, 2016, 10:28:40 am
Fixed in b9284.
  • Status changed from New to Resolved


LIBERADO

  • Expert Stencyler
  • *
December 27, 2016, 01:22:25 pm
I use the "slide" block often. I need this fix. When can we download the new b9284?
The download page still says Build 9283
« Last Edit: December 27, 2016, 01:23:13 pm by LIBERADO »


rob1221

  • Master Stencyler
  • *
December 27, 2016, 03:22:18 pm
Hmm, it shouldn't take this long to build so I guess the build server isn't working right now.  For now you can edit Actor.hx to change the one line as shown by yoplalala.
« Last Edit: December 27, 2016, 03:25:13 pm by rob1221 »


LIBERADO

  • Expert Stencyler
  • *
December 27, 2016, 08:22:47 pm
OK, thanks.


LIBERADO

  • Expert Stencyler
  • *
December 28, 2016, 01:10:54 pm
Same problem with the spin tweening. When spinning twice in a row, if the second spin starts before the first spin is finished, then the actor direction will remain permanently locked and we can't change it by using the "point [Actor] towards..." block.
I have fixed it by editing the Actor.hx file.

@rob1221, please, can you add to the new build this spinning fix too?
« Last Edit: December 28, 2016, 01:42:03 pm by LIBERADO »


rob1221

  • Master Stencyler
  • *
December 28, 2016, 02:15:18 pm
Sure, but after the build server is fixed.
  • Status changed from Resolved to Confirmed


Issue updated by rob1221 - December 30, 2016, 02:00:02 pm
  • Issue Assigned from (none) to rob1221


Tepastelija

  • Level 1 Stencyler
January 02, 2017, 01:17:27 am
What's going on with build server? Still using old build?


LIBERADO

  • Expert Stencyler
  • *
January 02, 2017, 03:37:53 am
Almost a month without new released fixes, and the build server does not work. Strange way to start the year. This situation is very frustrating and disconcerting and can cause a lot of uncertainty in the users who pay for this software.
Please, can anyone tell us what is really going on?

EDIT: Created a new forum thread in the "Ask a Question" section to talk about this.
« Last Edit: January 02, 2017, 02:15:53 pm by LIBERADO »


rob1221

  • Master Stencyler
  • *
January 02, 2017, 10:02:13 am
This happened last year as well where all active devs stopped for over a month.  I assume progress will start again this month.  Also, if you want to talk about Stencyl in general you should make a new forum thread.


LIBERADO

  • Expert Stencyler
  • *
January 02, 2017, 12:11:56 pm


rob1221

  • Master Stencyler
  • *
January 02, 2017, 07:40:00 pm
The build server is working again, and the spin tween issue is fixed in b9285.
  • Status changed from Confirmed to Resolved


Pages: 1

Details

  • Reported
    June 08, 2016, 02:12:39 pm
  • Updated
    January 02, 2017, 07:40:00 pm

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

Tags