All Activity

This stream auto-updates     

  1. Past hour
  2. Ivan, here's the approach that ended up working. I discovered the frame shifting technique as you were writing your post about it 🙂 The nice thing is, this doesn't require any deep deep diving in to PIXI internal or webgl, and works with PIXI v4. step 1 - adjust the base texture to wrap this.pathTexture = new PIXI.Texture.fromImage('path-texture.png'); this.pathTexture.baseTexture.wrapMode = PIXI.WRAP_MODES.REPEAT; step 2 - in my game loop update method update(delta) { this.throwPath.texture.frame.x -= 200 * delta; this.throwPath.texture._updateUvs(); } And here it is in action: Thanks again for your help!
  3. Yesterday
  4. I downloaded a very old instant games build that Panda2 exported and it did contain fbapp-config. So I believe this file is created on export from Panda2, atleast with the current workflow. Since the export function doesn't work anymore due to the error, there is no zip created when I export to instant games. Let me try to export a zip and manually put the fbapp-config and see whether I can manually upload it to facebook.
  5. Wobla

    I'm NEW..hello

    Hello. We always learn something new and this is okay. For example, I have been learning astrology for more than two years but I have face numerology only on this month and now I am newbie in it
  6. I wonder how much performance cost that incurs, rendering to one canvas (with the GPU) then taking the image data to Three.js texture, and rendering to another canvas (with GPU). Seems like a lot going on there. Maybe there is an optimized code path underneath in the browsers, for that case?
  7. The India Game Developer Conference (IGDC) is a prestigious event showcasing the skills of companies involved in the art of making diverse games belonging to multiple genres. This year it will be the 11th edition of this grand event which will take place at the Hyderabad International Convention Center between 22nd and 23rd November. Red Apple Technologies, as a VR game development company, we will be showcasing our VR expertise to enable you experience immersive gaming. Click to know more:
  8. Thanks. Adding WASD controls is on my to do list. New hero added: Heat Seeking Missile
  9. So, I want to add some info for those who like to look classy when they go to a meeting or something. A lot of people don't have that much money to dress properly so they start buying replicas which is far not the best idea and you can check out Mau-fashion's opinion on cheap handbags to find out why.
  10. Oh, thanks, i didnt get it! > therefore, the hitArea that I need to set needs to be rotated? rotate container initially. if you want object to be not rotated afterwards, well, rotate it in other direction. hitArea is measured in local coordinates Here's the code of hitArea that is the same as sprite: container.position.set(...) container.rotation = Math.PI/10; // a bit sprite.anchor.set(0.5); //usually sprite.scale.set(...);//whatever size you want, same as sprite.width = something container.addChild(sprite); container.interactiveChildren = false; // turn off sprite interaction container.hitArea = new PIXI.Rectangle(-sprite.width/2, -sprite.height/2, sprite.width, sprite.height); //that's for anchor 0.5 and position 0. // Your sprite local position and anchor can be different, you have to edit in that case. // (sprite.position.x - sprite.anchor.x * sprite.width, sprite.position.y - sprite.anchor.y * sprite.height); // also sprite.width is actually texture.width * sprite.scale.x if sprite has no children // if it has children - you'll have a problem, use texture.width directly!
  11. My problem has been that the displamentFilter effect hasn't been scaling to the size of the displacementSprite, it's been scaling to the size of the entire container that the filter is added to. I'm probably doing something wrong! I will check my code and report back
  12. Sir I used this plugin and It was scrolling on the laptop browser but not on the mobile.. what can I do else? help please
  13. Hi is there any way to enable mobile scrolling in phaser 2
  14. Can you check if there is a fbapp-config.json file in the root of your zip file? see also:
  15. Congratulations to gammafp & veryeviltomato! Great job and thank you. I'm just trying and learning, but I imagine the amount of coding behind this auto-atlas. Best wishes and regards!
  16. Rubydesic


    Sorry to be rude, but I do not know if you have gotten a notification for my message so I am quoting this
  17. I'm starting to think this way, too. Kind of came in with the idea that the pixel fonts would be consistent on every device, but SystemText is just..more..convenient. Have to use it for my next project, as I have to be flexible for too many character sets.
  18. Greetings! Here are this week’s new free music tracks: On my Fantasy 9 page: AFTER THE FOREST BATTLE – (Looping) On Puzzle Music 5 page: COSMIC PUZZLE – (Looping) And on my Sci-Fi 8 page: MACHINE EVOLUTION – (Looping) Enjoy…and have a great rest of your week!
  19. @Antriel, How are you setting the scale and position of your objects to update on resize? Do you have a working example we can check out? Also, what version of Phaser are you using here? Thanks!
  20. What about when you need to drag-n-drop an entire scene, (e.g. a map for panning), not an individual object?
  21. Last week
  22. I tested it again and now there is no error. Regards.
  23. Here it is, a small System Text plugin with 3 features: 1) typewriter effect 2) strokeColor (border) 3) example how to use gradient colors with systemText in Panda. Please note that I included a custom font in the project to achieve the second and third example. See the demo project for files ans details at: Quick example (typewrite effect not working here because it is a static image): systemtextplugin.js game.module( 'plugin.systemtextplugin' ) .require( 'engine.renderer.text' ) .body(function() { game.SystemText.inject({ /** Enable typewriter-effect @default false **/ typing_effect: false, i: 1, /** StrokeColor of the text. @property {String} color @default #000 **/ strokeColor: '#000', /** Width of the text stroke. @property {Number} color @default 0 **/ lineWidth: 0, _renderCanvas: function(context) { var wt = this._worldTransform; context.globalAlpha = this._worldAlpha; context.setTransform(wt.a, wt.b, wt.c, wt.d, wt.tx * game.scale, (wt.ty + this.size) * game.scale); context.fillStyle = this.color; context.font = this.size * game.scale + 'px ' + this.font; context.textAlign = this.align; context.strokeStyle = this.strokeColor; context.lineWidth = this.lineWidth; if(this.text === undefined) return; var lines; if(this.typing_effect){ lines = String(this.text.substr(0, this.i)).split('\n'); if(this.i <= this.text.length){ this.i++; } }else{ lines = this.text.split('\n'); } for (var i = 0; i<lines.length; i++){ context.fillText(lines[i], 0, (i*this.size) ); if(this.lineWidth){ context.strokeText(lines[i], 0, (i*this.size)); } } } }); }); main.js game.module( 'game.main' ) .require( 'plugin.systemtextplugin' ) .body(function () { game.createScene('Main', { init: function () { //typewriter demo new game.SystemText('Lorem ipsum dolor sit amet,\nconsectetuer adipiscing elit.\nSed posuere interdum sem.', { size: 50, x: 0, y: 0, typing_effect: true, }).addTo(this.stage); //custom font with strokeColor new game.SystemText('Lorem ipsum dolor sit amet,', { font: 'SoSweetHoney', // align: 'left', color: '#2d963b', strokeColor: '#a2e65e', lineWidth: 2, size: 50, x: 0, y: 300, }).addTo(this.stage); //gradient font color const color = game.renderer.context.createLinearGradient(0, 0, game.width, 0); color.addColorStop(0, "#f47c35"); color.addColorStop(1, "#e6e650"); const strokeColor = game.renderer.context.createLinearGradient(0, 0, game.width, 0); strokeColor.addColorStop(0, "#a2e65e"); strokeColor.addColorStop(1, "#3577ca"); let test = new game.SystemText('Lorem ipsum dolor sit amet!', { font: 'SoSweetHoney', lineWidth: 2, size: 50, x: 0, y: 500, }).addTo(this.stage); test.color = color; test.strokeColor = strokeColor; } }); }); index.html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Panda 2 - SystemText</title> <link rel="stylesheet" href="style.css" media="all" /> <script type="text/javascript" src="src/engine/core.js"></script> <script type="text/javascript" src="src/game/config.js"></script> <script type="text/javascript" src="src/game/main.js"></script> </head> <body> </body> </html> Note that you have to include the fonts directory as well as the style.css file in your project to make the custom font work!
  24. (Disclaimer: I have posted a similar post on the new Phaser 3 forum, but as I crucially need feedback I'm spreading it around) I'm presenting Westward, a collaborative MMORPG where the players have organize themselves to settle a continent, continuously expanding westward in order to grow and conquering an hostile civilization in the process. The game can be played here and you can check this page for more information. I’m also writing regular dev log. There are one or two screenshots at the end of this post to give you an idea of the style. The first basic version of the game is finished and working, but this is still very much work in progress as the gameplay and the visuals are still basic and a far cry from what I have in mind, and surely there are some bugs left. However, it is advanced enough to be shown around and at this stage I crucially need feedback to steer the development in the right direction. Therefore, I invite you to as much as possible point out bugs, indicate what is not fun or annoying, what you think could be improved, but also what you like, if anything. Below the game canvas are a few social links (Slack & Discord) if you want to follow the development, support me and/or give feedback. These channels are still a bit empty, feel free to make that change. Development has been going on in my free time for more than 2 years and started with Phaser 2 but moved to Phaser 3 as soon as it was released and has grown with it.
  25. I think it is best to put this into a separate plugin so you can add this feature (and the extra kbs) if you need the feature. Shall I give it a go? I have already bundled a couple of other SystemText addons into a personal plugin and this feature would be a nice addition. I can publish the plugin on this forum. I really prefer SystemText over(image based) Text, it is so much more flexibel!
  26. It is out-of-the-box Whats the problem? I just didnt understand what you want to do and assumed we have problem with scaling > Ah, thanks Ivan!! I love the "Wait for you to solve it" solution I write it to encourage people to solve everything themselves. Its a bitter option.
  1. Load more activity