• Content Count

  • Joined

  • Last visited

Everything posted by shohan4556

  1. have you tried; ?
  2. Thanks for your reply, Livin' La Vida Loca
  3. I have seen that Phaser developers using to manage their project and and build but I have no idea how to use it, what are the advantages ? Thanks.
  4. you code is very well structured good job keep going.
  5. I am replying the 2nd question, yes everything is working fine without the param game but its not a good practice yesterday I got a problem about this and its waste my all that day here is the post link and why should you use 'prototype' ? , because in a nutshell its not instantiate your game object manytimes it only do it once, for better understand visit the link
  6. Hello guys I am new in xdk I have a little problem I know there might be a little solution, so my problem is that, I have a Menu.js file and menuButton.js file I am trying to create menuButton object but its fire up an error like Uncaught TypeError: Cannot read property 'sprite' of undefined. my Menu.js file BasicGame.menuState = function(game){ };BasicGame.menuState.prototype = { create: function(){ ='menuBg',1,true);; this.buttons = new menuButton(game); // error this.buttons.create(); // error }, update: function(){ } }my menuButton.js file var menuButton = function(game){ // = game; // tried this not working // error - Uncaught TypeError: Cannot read property 'add' of undefined };menuButton.prototype = { create: function(){ this.playButton =,100,'playButton'); }, update: function(){ } }the did the same formation in my Bracket editor and that was fine but in xdk it occurs error. I have tried several ways but the result is nothing. Thanks
  7. I have solved this problem it was frequency I just changed the frequency to 8000 and it works.
  8. I dont use crosswalk It build apk with large size. I have used here cordova
  9. I have created a phaser project in intel xdk but when I run my game in emulator the sound wont play my sound files format is mp3 and ogg , frequency 44100. but when I run my game on chrome or any browser the sounds play flawlessly then why not xdk emulator ?
  10. answer : 1. you cant export game as a zip file but you can play game in the site (forever). 2. yes 3. yse
  11. if you want to animate frame from 5-10 frame(assume that your spritesheet have 1 to 10 frames) then try something like this myanimations.add('heroRun',[4,5,6,7,8],true); // frame start from'heroRun');
  12. I am currently working on this project its 60% completed hope I will finished this soon .
  13. what I did inside my update method. // after creating text in create methodmytext.text = 'loading'+game.load.progress;but It says always zero. no change any idea.
  14. Hello devs, I have a little problem I need a progress bar with percentage something like this, I know it had a simple solution but I have no idea how to do it. Thanks.
  15. var dead = Phaser.ArrayUtils.getRandomItem(this.fruitsGroup.filter(function(e){ return !e.alive; }));How about this ? what I try something mysprite = dead.revive(); to revive the dead sprite, it occurs error says Uncaught TypeError: Cannot read property. 'revive' of null
  16. I cant understand what kind of game you want to make. It will be better if you add the game desing of your game in wiki .
  17. would you mind If I create pull request for your game ?
  18. Cool man I have followed this way and its works fine , thanks
  19. I have followed the procedure you posted here but I have encountered an error like atom-ternjs Failed to find plugin phaser
  20. This is COOL man, I just forked it , Thanks for sharing
  21. questnpcGroup = game.add.physicsGroup(Phaser.Physics.ARCADE);questnpcGroup.createMultiple(10,'mysprite',null,false);questnpcGroup.setAll('body.setSize','body',70,70,0,0);I usally follow this way. after doing this you cant debug questnpcGroup body because group has not any body.