fruitiongames

Members
  • Content Count

    2
  • Joined

  • Last visited

  1. Hey yarik, You may want to make sure that both hero2 and the bullets group are both enabled in the arcade physics system. You do that in the create function like so: this.game.physics.arcade.enable(hero2); this.bullets.enableBody = true; Also make sure that the this.game.physics.arcade.collide call is in the update function. Let us know if that works!
  2. Hello! I may misunderstand what you're asking but in my game I switch between states via code like this. this.game.state.start('MainMenu', true, false); That third parameter that's passed as false indicates whether the game cache should be cleared. Here's the exact phrasing: @param clearCache — Clear the Game.Cache? This purges out all loaded assets. The default is false and you must have clearWorld=true if you want to clearCache as well. As long as you're passing it as false (or not passing it at all as the default value is false) you should not have trouble loading assets just because you switched state. Let us know if that helps! Thanks