Jump to content


  • Content Count

  • Joined

  • Last visited

About OSamo

  • Rank

Contact Methods

  • Twitter
  1. Thanks for the resource! I am checking it right now. Any clue on the bug that I am having?
  2. So, I am trying to expand upon the "Making your first game" tutorial (https://github.com/photonstorm/phaser/tree/master/resources/tutorials/02%20Making%20your%20first%20game) by creating states instead of running the game directly on the script tag in the html file. I have tried doing so by following the template provided, but I cannot answer must of the questions I have only by looking at it. I am also currently facing a bug that I would love some help in solving. The bug that I mentioned is freezing the game every time the player touches a star. The error I get is this one: Uncaught Type
  3. spencerLT, I have been following the template, somewhat, but I do not remember seeing anything about functions other than the ones that are overloaded. AbdSab, Adding "this" solved that, and other issues. Do I have to use "this" every time I reference a variable or function inside the state it was declared? How can I reference items that were initialized outside the current state?
  4. (Warning, new Phaser user ahead) I´m making my first tests with States on Phaser, and I am now having a problem creating functions inside states that are not the predefined ones (create, update, etc). All in all, this is the code that is giving me trouble: this.physics.arcade.overlap(player, stars, collectStar, null, this);I define my collectStar function like this, before it is ever called: collectStar: function(){// Removes the star from the screen star.kill(); // Add and update the score score += 10; scoreText.text = 'Score: ' + score;},This is inside a state on a diffe
  • Create New...