Search the Community

Showing results for tags 'phaser'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 3,332 results

  1. How can one create group sprite at intervals? Here is my code <code> function createPlate() { this.add.group ({ key: 'goodPlate', repeat: 4, setXY: { x: 70, y: 100, stepX: 120, stepY: 20 } }); } this.time.events.loop(3000, createPlate, this); </code>
  2. Zampano

    Group Alpha

    Hey everyone. Is there a possibility to use something like a "master alpha" for a group of sprites instead of them all having their individual alphas changed? If that's not clear enough: I have a group of overlapping sprites that make up a bigger element. Now I want to fade this in/out as one single object using a tween. Instead, the sprites fade individually which results in them overallbeing less transparent in overlapping areas as well as initially covered sprites to shine through for the duration of the fade. Obviously, I could alternatively just make it all one sprite, but due to multiple possible combinations, that would be quite costly. Does anyone have an idea? Thanks! EDIT: After some more research, I think rendertexture might be what I need, right?
  3. Titus

    Walk Animation Shaking

    Hello, I have a player spritesheet with 25 frames for a walk animation loop. When I add the animation and play it without any velocity is works fine. When I add velocity to it I can see that the feet of the sprite are visibly shaking. I've tried playing around with the velocity values and there does seem to be less shakiness with lower velocity values but then the feet are just moonwalking on the floor . I'll add my code below. In the game the velocity is mapped to the right arrow but for testing everything is in the create method here:
  4. I wanna create a single animation using multiple sprite sheets that I have, which are a kin da content.
  5. I tried out multiple methods and property from the https://labs.phaser.io/index.html?dir=&amp;q= https://photonstorm.github.io/phaser3-docs this both link for the phaser3 but not able to set the width of the perticular text i also try to apply font using css but it also not working for me. Thanks in advance.
  6. Hey everyone! Currently, I'm building a vertical space shooter game, similar to Galaga, but I'm running into a problem where the enemy respawn function consumes a large amount of processing. Whenever you play my game for roughly 20 - 30 seconds, a noticeable lag begins to drop the framerate from 60fps to as low as 30fps; however, if you play for a little longer after the severe lag begins, the game will jump back up to 60fps. I''ve narrowed it down to this piece of code: createEnemy(): void { var MIN_ENEMY_SPACING = 300; var MAX_ENEMY_SPACING = 3000; var enemy = this.enemies.getFirstExists(false); if (enemy) { enemy.reset(this.game.rnd.integerInRange(0, this.game.width), -20, enemy.health); enemy.body.velocity.x = this.game.rnd.integerInRange(-150, 150); enemy.body.velocity.y = this.game.rnd.integerInRange(50, 100); enemy.body.drag.x = 100; enemy.update = function() { enemy.angle = 0 - this.game.math.radToDeg(Math.atan2(enemy.body.velocity.x, enemy.body.velocity.y)); } } // Send another enemy soon this.game.time.events.add(this.game.rnd.integerInRange(MIN_ENEMY_SPACING, MAX_ENEMY_SPACING), this.createEnemy, this); } If you view the uploaded image attached to this thread, you will notice where the createEnemy() function lies; however, the top functions having the worst Total Time are update, updateRAF, sort, InnerArraySory, Quicksort, etc. All of these functions are influenced by the createEnemy() if you go inside their nested subfolders. Any thoughts on what may be specifically wrong with this code?
  7. Hi all! I made some improvements to my web games site 1 Pixel Army, now it has 4 games (all made with Phaser). I'd be happy to receive suggestions for improvement. You also have the option to place a free ad as well, to promote your game/project/whatever, you just have to sign in with your Google account. Hope you enjoy the games, and spread the word!
  8. Arijit Naskar

    line not rendering from array

    I am creating dynamic moving sprites and drawing lines between them. The sprites are moving. But the lines are not moving. Please help. My code is below: var poly, graphics, game = new Phaser.Game(this.width, this.height, Phaser.CANVAS, 'phaser-example' , { preload: preload,create: create,update:update,render:render}); var handle1; var spritearr; var i = 100; var linearr; function preload() { game.load.spritesheet('balls', '../../assets/sprites/ball.jpg', 100, 100); } function create() { game.stage.backgroundColor = '#124184'; spritearr = []; linearr=[] handle1 = game.add.sprite(400, 400, 'balls'); handle1.anchor.set(0.5); game.physics.arcade.enable(handle1); spritearr.push(handle1); } function update() { if(spritearr.length==4) i=100; if(spritearr.length<4) { spritearr.push(game.add.sprite(400+i, 400, 'balls')); spritearr[spritearr.length-1].anchor.set(0.5); spritearr[spritearr.length-1].inputEnabled = true; spritearr[spritearr.length-1].input.enableDrag(true); game.physics.arcade.enable(spritearr[spritearr.length-1]); i=i+100; linearr.push(new Phaser.Line(spritearr[spritearr.length-2].x, spritearr[spritearr.length-2].y , spritearr[spritearr.length-1].x, spritearr[spritearr.length-1].y)); linearr[linearr.length-1].fromSprite(spritearr[spritearr.length-2], spritearr[spritearr.length-1], false); } for (var k = 0; k < spritearr.length; k++) { spritearr[k].body.velocity.x = -100; if(spritearr[k].x <0) { spritearr[k].destroy(); spritearr.splice(k,1); graphicsarr.splice(k,1); } } } function render() { for (var k = 0; k < linearr.length; k++) { game.debug.geom(linearr[k]); } } } **The code is working if I do with just 2 sprites and no loop inside render() function. May be the the issue is because I am using a loop inside render() function. Please suggest if there is a solution.
  9. Play Cool Math

    Online Sudoku Game

    Hi I want to present new game Online Sudoku Daily mode (Every day new level) Classic mode (easy, medium, hard) Print Sudoku Facebook connect Top score for daily mode Backup (restore game if you close browser) Magic button (help) Pause Restrore progress system (if you logined, you can restore progress on other devices and browsers) Mobile Versions:
  10. GoldFire

    More advanced particles?

    We are in the process of porting our Phaser-CE game to Phaser 3 and have been using Particle Storm. We were able to make a lot of great particle effects with this and it looked like the Phaser 3 particle system was fairly similar. However, we are finding some serious limitations that render the vast majority of our particle effects impossible in Phaser 3. I'm hoping this isn't actually the case and I'm just overlooking something. For example, a lot of our particles start with a random alpha value, fade in from 0 to full opacity at the half point and then back to 0 at the end: alpha { value: {min: 0.5, max: 1}, control: [{x: 0, y: 0}, {x: 0.5, y: 1}, {x: 1, y: 0}], } However, two issues in Phaser 3: 1. You can't use min/max in addition to start/end, so it is an either/or with having random values and values that tween. 2. You can no longer define a control, you can only provide an easing function, which means you can only either fade in or fade out, but not both. Is there any way to accomplish this in Phaser 3 that I'm overlooking?
  11. Appolos

    Plugins in Phaser&ES6

    I`m use in creating simple game - ES6 syntax, and I cannot add plugin to my game (phaser-plugin-game-scale). Help me and explain how to use plugin in ES6 syntax. Thanks!!
  12. Play Link: Monster Clean-Up Can you fight monsters with a mop? Thanks to player feedback, I've invested all my time in creating this huge update: - New Monster Types - Boss Events - Different Weapons - In-Game Shop - Score System & Online Leaderboard! - Personal Kill Statistics - And more Gameplay You are the janitor entering a monster-infested building. How many monsters can you clear? Find out in Monster-Clean-Up! Clear floor by floor, collect power-ups, buy new weapons and stack up on dollars to save your progress! Check the leaderboard to compare your score with other fellow Janitors! The game works on all mobile devices (phones, tablets). Art & Design All the sprites in the game have been hand-drawn by me, which is a first. I would love to hear all your feedback regarding the art style as well as the overall gameplay! Game Link Thank you for checking it out Play Link: Monster Clean-Up
  13. Hi everyone, I want to show you my first html5 game. It named Monkey Jump. Addictive, fun and curious game. This game created using phaser 2 and I built it into android application (.apk) . It already published on google play store. I don't have online testing page, but you can try and play it by downloading on googleplay. This is the link to get it: Monkey Jump. Youtube Video
  14. Damla Eker

    addToFileList in Phaser 3

    Hi everyone, Is there an equivalent of "addToFileList" in Phaser 3?
  15. How to pass the cursor object to a method that belongs to a class that inherits the Phaser.Sprite class? I have a class that inherits from Phaser.State in which I create a cursor object and pass it to the update method from another class. class Play extends Phaser.State { create() { this.physics.startSystem(Phaser.Physics.ARCADE) ... this.player = new Player({ game: this.game, x: 32, y: this.world.height - 150, asset: 'dude' }) this.game.add.existing(this.player) } update() { const cursors = this.input.keyboard.createCursorKeys() this.player.update(cursors) } } Player class - problem occurs in the if condition: class Player extends Phaser.Sprite { constructor({ game, x, y, asset }) { super(game, x, y, asset) this.game.physics.arcade.enable(this) this.body.bounce.y = 0.2 this.body.gravity.y = 300 this.body.collideWorldBounds = true this.animations.add('left', [0, 1, 2, 3], 10, true) this.animations.add('right', [5, 6, 7, 8], 10, true) } update(cursors) { this.body.velocity.x = 0 if (cursors.left.isDown) { this.body.velocity.x = -150 this.animations.play('left') } } } Error message: "TypeError t is undefined"
  16. I am new to html5 games. I wanna know what LACKS in HTML5 games in terms of revenue ? Can you monetize html5 games with banners and interestitial ads as ANDROID GAMES DOES ? Is there a possibility of implementing IAP or rewarded videos like ANDROID ? Do u thing that using webview that host an HTML5 game in ANDROID and use all these forms of ads above is a good idea ?
  17. How do you configure the server for this template ? => https://github.com/nkholski/phaser3-es6-webpack I'm trying to do it by following this tutorial => https://gamedevacademy.org/create-a-basic-multiplayer-game-in-phaser-3-with-socket-io-part-1/?a=13 I added two dependencies: nodemon and express. I created the server.js file with the server configuration. const express = require('express') const app = express() const server = require('http').Server(app) const path = require('path') app.get('/', function(req, res) { res.sendFile(path.resolve('index.html')) }) server.listen(8081, function() { console.log(`Listening on ${server.address().port}`) }) In the package.json file, I added a command to start the server: nodemon src/server/server.js The server starts correctly but the indicated html file can not read the scripts (" The load failed for the "script" element with the source vendor.js and app.js"). Project structure:
  18. I want to implement a bitmapData property to skew my sprite, so anybody help me out there..? need to know how to implement search docs in our game..?
  19. Our team is looking for experienced HTML5 developers who are able to join our team immediately as remote freelancers. Duties will range from creating mini games, to full HTML5 games (using Phaser). With this in mind, we need a developer who is dedicated, hard working, extremely knowledgeable and who takes pride in his or her product. The position will start with a few simple minigame projects, and has plenty of room to grow for the right candidate into more work, including full html5 games, conversions and more. Payments are flexible and can be made in fixed, hourly or salary methods. Please note that first we will do a test work with you which will be a fixed pay job. Afterwards we can move to whichever method you would like. Good English speaking and communication is needed so that there is no communication failures. You may be asked to work in some, or all of the following areas. Please note that you do not have to have experience in all of the areas, and that is ok! However, Phaser knowledge is a must. We do not mind people with less experience, they are welcome to apply. Slack: With all projects, we do require a very open communication dialogue. We use Slack for our team conversations. HTML5: You will be converting and/or creating HTML5 games for mobile, tablet, and all platforms. Git Repository: Experience with GIT is a plus, but can train for this. Phaser: Phaser knowledge is a must! You should demonstrate a mastery with all of it’s features, and have titles in your portfolio using the framework. Our games are very small and simple. You will be provided with all the assets and straightforward logic of what has to be done. We concentrate on polish such as tweens, particles and little details that give life to each game. Having an eye for game design and well polished end results are critical! (We can help you achieve it). Once applied, I can explain it to you on what exactly we want here by showing you samples. The three biggest things we look for are excellent communication skills, the ability to not only develop exactly what is given to you, but also contribute new ideas and creative thinking, and finally timeliness. Its absolutely needed that work is always completed on time. Please mention your time zone when applying for the job. Please only apply if you are 100% sure that you can dedicate the time towards it. Please submit your portfolio and hourly wage requirements to jobs by mailing to vivekagrawal57 [at] gmail.com, thanks!
  20. Detective Moustachio

    [WIP] Detective Moustachio

    Detective Moustachio is an HTML5 game made with Phaser CE, Cocoon for mobile optimisation (on old devices) and it use the Arcade physique of Phaser (a bit customised for the slope textures). The atmosphere of the game is a retro pixel art neo post apocalyptic (Despite it I made it as funny as I could do). The story is about a private detective which is trying to solve a case about a lady who lost her cat, and things escalated very very quickly (like mad scientist, gravity inverted on earth and stuff like that). I work on this game since 10 months+ as an hobby and I am doing my best to release it really soon (Actually working on the maps, coding the bosses and putting the sounds).I will try to release it at the end of the summer on Web, Messenger, Android and Ios. You guys can follow the progress of the development on my twitter : https://twitter.com/DelgadoRenaud I put updates and previews of the game daily/weekly. I have a lot of surprises about this game. Since this is a hobby and not my main activity, I won't put any ads or things like that, I just wants people to have fun playing this game !
  21. We're looking for devs to participate in testing our playable content creation platform. Here are some details on the features and benefits: Using our library of existing game assets or starting from scratch, game devs can easily build and customize playables to attract ready-to-pay/play users through highly engaging and fun interactive experiences. Custom playables are instantly published and can be distributed across any website/network/app to engage and acquire new, high LTV users. If you're interested in participating, please respond to this thread or email me at erict@gamecommerce.com
  22. xKizaru

    Phaser vs Wix !!!

    Hey everyone, hope you are doing good Not too long I was looking on the net for a piece of advice about how to create a 3d furniture editor/ customizer (which library to use and stuff...) and the best thing I found was this topic http://www.html5gamedevs.com/topic/23640-best-library-for-furniture-simulator/ But I still not decided on which to choose: Phaser or Tree.js ...(do not know where to start either) Why did I mentioned Wix in the title?? because I started this project as an internship and the company is already on Wix so I'm looking also for a way to integrate the the 3d editor on a Wix page (if it is possible) here is an example of what the company asked to code : https://www.mobibam.com/configurateur I'll be more than grateful for your thoughts and insights ^^
  23. Play Cool Math

    Online Mahjong Solitaire

    Hello Everybody I released new online mahjong solitaire https://onlinemahjong.games I add new level Every day from 1 January 2018 (170+ levels) 3 tail skins Facebook connect High score Backup (restore game if you closed browser) Undo (unlimited) Magic button (help after 10 seconds) Pause Restrore progress system (if you logined, you can restore progress on other devices and browsers) I need to ask you something ☺️. Login and complete any level. I want to see some players in table of record (Now you can to see only me 😟) Thank You! iOS version: https://itunes.apple.com/app/online-mahjong-solitaire/id1410379162?ls=1&amp;mt=8 Android version: https://play.google.com/store/apps/details?id=cool.logic.onlinemahjongsolitaire
  24. lunafromthemoon

    (Demo) Spiked Heart

    Hello everyone, I present you my new visual novel, Spiked Heart. Spike is just a cat like any other, until the local fairy came to visit and told him to find his true love, or else. Is it just a coincidence that the fairy looks exactly like Cereza? Can Spike find his true love? Why does the game look so shitty? Many questions in this life have no answer. The game was developed with RenJS, a Visual Novel library for Phaser, also developed by me! Thanks for playing! https://lunafromthemoon.itch.io/spiked-heart-demo