rich

Administrators
  • Content Count

    6,445
  • Joined

  • Last visited

  • Days Won

    294

Everything posted by rich

  1. rich

    How to load asset before preloading screen?

    http://labs.phaser.io/edit.html?src=src\loader\scene payload\scene files payload.js If it's just a small amount of assets use the above method. If it's more, create a Boot Scene specifically for loading them, then move to a Preloader scene to get the rest of the game files, before finally going to your game scene.
  2. rich

    Plugins Phaser 3 matter.js matter-attractors

    The Matter Attractors plugin is already built-in, you just need to specify it in the Scene config. There's an example for it here: http://labs.phaser.io/view.html?src=src\physics\matterjs\attractors.js
  3. createFromObjects just returns an array. Place the contents of it into a Group.
  4. Look at what `createFromObjects` returns, because it's overwriting your Physics Group.
  5. rich

    New forum

    I'll provide a zip of all attachments when you request it, you can decide if you want to do anything with them or not after that.
  6. rich

    New forum

    It's fine, I just need to check all tables for an IP address column and blank them if they have them, plus erase the users table (you still have the usernames of those who made the posts in the actual posts table). Then you can do whatever you want with the actual data. I can provide a dump of attachments too, but only once, as it's time-consuming. So let me know when you want me to do that. It will be up to you to consolidate these files with the attachment IDs in the database. I'm not sure how much space you get with Discourse, I think it's 1TB, before Deltakosh will have to start paying monthly to be hosted there. Just to clarify - forum updates are paid for until April 2019, after which it will still work, but Invision won't be updated any longer. Without BJS or Phaser here traffic will be really small, so I can move it to a cheap VPS and keep it online indefinitely (or until some massive Invision security flaw comes out!)
  7. rich

    New forum

    No pictures, that's pure data. That's for the whole forum, not just the BJS section of course.
  8. rich

    New forum

    I dumped the db today and it appears Invision puts the IP address of the poster in nearly every table This isn't information I can release, so I'm going to have to tidy this all up before sending it. The db dump is over 600MB, excluding logs. Also, be aware it doesn't include file attachments. Not that you'd be able to upload them to Discourse anyway.
  9. rich

    New forum

    No-one has ever, ever, asked me for a copy of the forum database. So this is most certainly not a 'long time known issue'. You can have a copy of the MySQL db if you like. I just can't (and won't) include the users table, so it's useless for migrating to another host, but fine for extracting posts from.
  10. It will emit pointerover whenever it goes over an input enabled Game Object. If you only want to listen for it over one Game Object, listen to the event from that Game Object instead of the global one.
  11. It will only emit `pointerup` and `pointerdown` once per press, so make sure you haven't bound your event handler more than once, as it will get called for each binding.
  12. rich

    this.cameras.main.setAlpha is not a function

    Does work in 3.15, just like the labs link above, which uses 3.15.
  13. rich

    this.cameras.main.setAlpha is not a function

    Wrong scope, or old version of Phaser perhaps? Because it's working here: http://labs.phaser.io/view.html?src=src\camera\camera alpha.js
  14. rich

    Stuck on First Phaser3 Game

    That’s why it doesn’t work. WAMP is a web server, you need to access the files via http in your browser. Try just going to localhost and see if you get the WAMP projects page up.
  15. It should be "bubble.anims" but you need to create the animation first, before you can play it. Have a look at this for an example: http://labs.phaser.io/edit.html?src=src\animation\single sprite sheet.js
  16. rich

    Stuck on First Phaser3 Game

    How are you trying to open the files? It should be something like http://localhost/Learning%20Phaser if running WAMP locally. You don't need the GitHub repo locally just to run the examples btw. Not that it will hurt to have it, it's just not required.
  17. rich

    Can't add rectangle ?

    This is a known bug in 3.15.1, already fixed in 3.16 beta in the master branch. You don't have to add an image, you could also put a stroke on the rectangle (with alpha zero) and it'll work too.
  18. rich

    Can't show rectangle without circle

    Yes, this is a bug in 3.15.1 - you don't have to add a circle, any object will do! Or just add a stroke to the rectangle. This is fixed in 3.16 (currently in the master branch, will be made public in a few weeks)
  19. rich

    Cannot read property 'y' of undefined

    This is almost certainly just a scope error, as `this` carries a different meaning within a function, like your forEach is using.
  20. rich

    Disabling lights makes objects invisible

    You need to set all of the objects using the Light2D pipeline back to the TextureTintPipeline.
  21. rich

    Keyboard input not recognized

    If it doesn't work in any browser, the issue is with your code. Post the full thing here.
  22. rich

    Keyboard input not recognized

    If this works fine in everything other than Chrome, you've probably got a Chrome extension installed that is stealing the input.
  23. rich

    How to not block event loop with function?

    No, that's my whole point, you don't generate the whole chunk in one go. You generate it iteratively, in steps. So over maybe 100 frames. Then it won't lag the game.
  24. rich

    How to not block event loop with function?

    The chunks look quite tiny, you could get away with generating a whole stack of them in advance. So you're at least 10 'chunks' ahead of where you need to be. Then, in your update, start generating the next chunk, but do it in steps. I.e. progressively generate it, i.e. 20 lines at a time, or similar. So the next chunk isn't done in one hit, but in lots of smaller hits. Get the timing right and it could easily create the chunks as you scroll. If the generation routine doesn't lend itself to this, either try and find one that does, or perhaps read about using Web Workers (which is outside the scope of Phaser)
  25. rich

    Keyboard input not recognized

    Change from 3.11.0 to 3.15.1 just to keep current, but the issue is one of scope. You define 'cursors' in your create function as a variable, meaning it's local to that function only, so when you inspect it in the update function, it has no idea what var you're talking about. Hoist the scope of cursors up. For this example, just make it global, like controls is. For a production game, make it a class property.