• Content Count

  • Joined

  • Last visited

About theNeedle

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. theNeedle

    How to make Sprite/Image not Interactive ?

    You can `sprite.input.enable = false`. If you want to toggle interactive mode than it's perfect. And I think that's what you're trying to do. If you want to remove the input object from sprite you can do this: `this.input.disable(sprite)`.
  2. You might use this device mode to see how your game scales in different mobile devices. If it scales as you want in chrome-devtools than it should scale as it is on mobile device. If you want to disable scroll than you can use some meta tags in html. However I used phaser 3 and scale the game using custom JS function like this. Apart from that I don't have any experience with phaser2.
  3. theNeedle

    Multiplayer Mongodb

    you might consider using Mongoose ODM. I think it would be easier(and better) than directly using mongodb.
  4. theNeedle

    How to detect click on element in Array without looping?

    Great. Using Node(Express) as MVC? It looks like a lot of work. keep it up. 👍
  5. this might be something related to CSP(Content Security Policy). When trying out cordova, I've faced issue where any of assets are not loading. It was solved by removing meta tag related to CSP. I'm not sure that's the best practice but it was okay for just get it to working condition. Other than that I didn't find any other issues. However I didn't run it on emulator, instead I run directly on the device and also made apk and install on several other device and it was working good. Maybe try running on actual device or build an apk? I found this about CSP. I'm not sure this would solve your problem but it might be useful.
  6. theNeedle

    How to detect click on element in Array without looping?

    You might consider using `group` for cells. Check out these examples. For looping through cells you could use array methods like `filter` or something or use one of these methods. I'm not sure what you're trying to achieve but this might be useful. Looks like you are doing online multiplayer board game. I also want to make online multiplayer. Can you tell me what you're using ( or something like that) for sending moves between players?
  7. theNeedle

    How to detect click on element in Array without looping?

    You can `setName` or `setData` to Game Objects. Now, listen for `gameobjectdown` event and using `getData` or `` you can figure out which object was clicked. check out this example.
  8. theNeedle

    TILED_JSON headache!

    @TheScruffyGuy I had never worked with Tilemaps but I think there should be Phaser.Tilemaps.TILED_JSON in 1st line of preload function. I found it here.
  9. theNeedle

    Is it still acceptable to use Phaser 2?

    @KungFuFlames You can find the current Documentation for Phaser 3 here .
  10. I'm making small turn based game tic-tac-toe using phaser 3. Is it possible to cache assets and all the files needed to run game so that game can be played offline so that no internet connection is needed and every file is loaded from cache (providing native like experience)? Does service worker would do the trick? What are the common approaches to speed up the loading process and caching in HTML5 games?
  11. theNeedle

    Audio Format Compatibility

    I know we can pass different sound formats in phaser3 to let browser choose the compatible format. 1. According to this this and this mp3 is supported in most of the major browsers. So is it wise choice to use only mp3 format? if not then which format should be used with mp3 to support wide range of browsers? 2. Does this issue with ios 9 that required user engagement to start audio playback is handled by Phaser 3? From documentation it looks like WebAudioSoundManager has unlock method to resolve this issue but I'm not quite sure.
  12. this.imageGroup =; for( var i = 0 ; i < 10 ; i++) { var image = this.add.image(100*i, 100*i, "box"); // Add Image this.imageGroup.add(image); // added image to group } this.imageGroup.clear(true); // Remove all Children. I'm using clear() method to remove all children of imageGroup. Can I add children to this group after performing clear. OR this group is deleted and I need to create another group. And what is the difference between clear(), remove() and delete() methods of GameObjects.Group class?