Pausing and Attribute Tweening

RosalinaGalaxer

  • Posts: 239
Hey,

In my bullet hell game, I tended to move the bosses around by setting their x and y coordinates every frame to an x and y attribute. To change it, I would use the attribute tweening block, (found under Attributes > Functions) which let me get some nice looking movement (the boss would accelerate as she started moving, and decelerate as she reached her destination.) There just one downfall of this:

If you pause the game while in the midst of tweening an attribute, it continues tweening.

This meant that if you paused while the boss started moving, she could suddenly teleport to the other side of the screen when you unpaused. Does anybody know of a way to pause attribute tweening, or a better way to get the same effect that using the attribute tween block gets you?
Ģ̷̓l̴̥̒͑̕͝ì̷̘͈̬͈̖̂͂̔̕t̷͔͇̯̥̬̀̽̓͜͝c̵͇̦̼̮̉̐̈́̕͝ͅͅḣ̵̡̫̞͚̐̅ͅë̶̗̦̪̖͚̜́͊̄͑s̵̺̹̖̼̥̃.̴̮̫͐ ̶̛̓̇̾̎

“I have never seen a more heated discussion about context, jazz, and cats.” - VanillaButterz

LIBERADO

  • *
  • Posts: 2720
I think it is a bug and should be fixed.
You could report it in the Issue Tracker.
Meanwhile, you can use the "slide" block to move the boss actor.

« Last Edit: December 28, 2018, 03:37:14 pm by LIBERADO »
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.