korzo Posted September 24, 2020 Share Posted September 24, 2020 Hi ! I'm trying to move an sprite to a certain position and when this movement is done I would like to start another movement with other object (no user interaction involved). I can't find enough information on how to know when something is "done" inside of a ticker. Any help or example? Quote Link to comment Share on other sites More sharing options...
jonforum Posted October 4, 2020 Share Posted October 4, 2020 (edited) On 9/24/2020 at 12:57 PM, korzo said: Hi ! I'm trying to move an sprite to a certain position and when this movement is done I would like to start another movement with other object (no user interaction involved). I can't find enough information on how to know when something is "done" inside of a ticker. Any help or example? For animating stuff you need make your own engine , "pixi is a render library not animations libs", or use gsap or other tween library. Gsap have event to tell you when animation is end.https://pixijs.io/examples/#/gsap3-interaction/gsap3-tick.js But if you want a vanilla way to make your movement engine with pixi, you can take a look here, doing these things yourself is always better!https://github.com/rpgtkoolmv/corescript/blob/182e31449707ba7e406db0485c44c2a9d11e2dcd/js/rpg_objects/Game_Event.js#L84 Edited October 4, 2020 by jonforum Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.