Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Horizonicblue last won the day on July 19

Horizonicblue had the most liked content!

1 Follower

About Horizonicblue

  • Rank
    Advanced Member

Recent Profile Visitors

2562 profile views
  1. Hi On code canyon mostly construct is popular among the buyers, but if you have little better games than others it does not matter much which framework you use. Sometimes it even depends on visibility, because they approve and list 4-5 games together and if yours go down the list then it may get lesser visibility.
  2. Welcome, here is another example on states https://phaser.io/examples/v2/p2-physics/state-reset , in this example just see the structure of state and try to replicate with only one sprite and minimum amount of code that might help you understand it better. If you explore more there are lot of other ways of doing this as well. This is es6 way of doing https://www.joshmorony.com/phaser-fundamentals-using-states-in-phaser/
  3. Hi This is a short tutorial on which will help you on how you can organize states and basic structure in your game for Phaser 2 https://www.emanueleferonato.com/2014/08/28/phaser-tutorial-understanding-phaser-states/
  4. Yes you are right the cursor's position is directly assigned to ninja and maybe that's making it ignore collision. I would suggest use something like this.ninja.body.velocity.copy(pointer.velocity).scale(5); or this.physics.moveToObject(ninja, pointer, 240); inside the pointer move function instead of directly assigning x/y values and see if that serves your purpose (also try adjusting speed values as per your need)
  5. Haven't tried this way but I feel you are missing scene.add.existing(this); scene.physics.add.existing(this); https://phaser.io/examples/v3/view/physics/arcade/extending-arcade-sprite
  6. You need to add sprites using physics and add collider for the two sprites. Check this simple example it should help you resolve your issue https://phaser.io/examples/v3/view/physics/arcade/circular-body Also try to post more of your code for better insight
  7. A good looking simple classic mahjong, the highlight free tile is a great feature you have added. Initially I didn't see that and it was taking more time for me to know the free tiles. I hope that you will add more layouts to it that will add more fun.
  8. Here is a short example I wrote https://phaser.io/sandbox/edit/DuRpdEGQ This loop with check for distance is used to call the flutter action, try to make it more suitable for your use case bats.forEachAlive(function(bat){ if (game.physics.arcade.distanceBetween(player, bat) < 40 && !bat.fluttering) { bat.fluttering = true; flutter(bat); } }); Hope it helps
  9. Check out this example for phaser2 to move all sprites of one group to another https://github.com/photonstorm/phaser-examples/blob/master/examples/groups/move to another group.js If you want to move a specific sprite then you can try group.add(child) and then remove that sprite from previous group, more info can be found here in the docs http://phaser.io/docs/2.6.2/Phaser.Group.html#add http://phaser.io/docs/2.6.2/Phaser.Group.html#remove Hope this helps
  10. One way I can think of is iterate through the living members of bat group and for each active member of group check the distance between that member and player. Once the distance is within limit run your flutter code. This is currently one way I can think of there could be a better way if you dig through examples of Phaser v2
  11. I guess in this case you have not defined explorer properly, so when you do explorer.x += explorer.vx; it must be throwing error
  12. Hi, there are lot of game frameworks you can find, good once are Phaser, Melon etc but if your are not much experienced with the coding it would be better to go with something like Construct or game maker. Whichever way you choose invest some time in understanding the tool first, and yes mostly all game framework/engine support adding texts.
  13. Here is a one that's also used for io games https://colyseus.io/
  14. Hi, Actually it needs a local web server setup to run the game, directly opening the html file in browser won't load the assets. If you want to know why this happens read this https://phaser.io/tutorials/getting-started-phaser2 Maybe when you run it from brackets it creates a local webserver that's why it runs properly. Also just saw that your console shows Phaser CE v2 that means you are not using Phaser 3 but Phaser 2. In case if you want use v3 you can get it from here https://phaser.io/tutorials/getting-started-phaser3/part4 and follow the tutorial.
  • Create New...