Search the Community

Showing results for tags 'pixi ticker'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Platform
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. Hi all, I am developing a simple 2D game with PIXI js and have created an FSM that controls game flow at a high level. During some of the transitions between game states it would be desirable to have some animations in the game halt while others continue on or change. I have read the docs for PIXI.ticker.Ticker and my proposed solution was to use the remove function as outlined below. This is the most basic example I can give. class SomeState extends State { constructor(game){ //does some stuff with the passed in game } enter(){ //attach some animation loops to the app ticker; } //...a bunch of things to do with updating a state etc exit(){ //Here I would like to essentially pause a subset of the animation loops attached in the enter //function like so:; //This doesn't behave as expected sadly, the function is not removed from the ticker and just //continues on like nothing happened } } I have observed the function signature being passed to `remove` and it matches the signature being passed to `add`. Has anyone got any ideas as to why I am unable to remove a listener instance from the game ticker? Or in fact have an opinion on this approach in general, may I am barking up the wrong tree. Thank you in advance!