Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Horizonicblue

  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.
  15. I feel Dumb Riders really enjoyable and funny, at first I found the controls little annoying as I was more of rolling and crawling than scatting 😆 later became more comfortable. Also scatter is really horrible to control, maybe the first level is little difficult to start and any new player might give up easily(just a thought), maybe keep a short tutorial track on top of the menu to start with, rest is nice and fun. By the way, I didn't find the link for danger deep
  16. Hi, Since localstorage is a client side storage, client can access and modify it, also if user cleans up the browser storage or cache, it will clean up the whole data in localstorage. If you have any sensitive data to your game then its better you store or sync it with your server. Otherwise local storage is the best option.
  17. Not all games store the score in same way, so its better to ask game developer/provider to integrate the score based APIs as per the requirements of your arcade website. But for this they might charge you some extra.
  18. If you want to go step by step in Phaser https://phaser.io/tutorials/making-your-first-phaser-3-game
  19. Are these same people that hosted casual connect? If yes, check this out https://gamedaily.biz/article/423/casual-connect-joins-the-greenlit-content-family
  20. May the sparkle and joy of Christmas fill your heart 🎄✨ Merry Christmas
  21. You can try https://electronjs.org/ I dont know about the best practices and methods as I haven't used it much, but its widely used
  22. Yup this used to be a fun place when all frameworks had their forums here, though the new forums looks shiny it doesn't feel like whole HTML5 game dev community the way how it used to be here.
  23. I feel Intel XDK is one of the best alternative to cocoon as it provide similar performance to cocoon, but its no more supported. Phonegap, Cordova are only best supported currently. There is Capacitor which is very new and I haven't tried it yet https://capacitor.ionicframework.com/
  24. Phaser Interphase and there are some more for quick start by Emanuele Feronato you can check here
  • Create New...