Jump to content

Make a tween start at a certain position


systemlord01
 Share

Recommended Posts

Hi,

 

I have this question about tweening. I tween a value between 0 and 1.

This tween is applied to some actors in my game (each has its own tween) and determines its position in the game ( using the value with path.getPointAt() ).

I dont want all the actors to have the same positition when they are created so i was thinking of using something like 

 

Quote

tween.seek(Math.random());

So the actors are on a different part of the tween. But this doesn't seem to work. The tweens are all starting at 0. Is this a bug? I have tried it with the tween started and the tween paused. But nothing seems to work.

 

I am currently using phaser 3.15.

 

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...