Jump to content

How to know when my method is done inside of a ticker


korzo
 Share

Recommended Posts

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?

 

Link to comment
Share on other sites

  • 2 weeks later...
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 by jonforum
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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