Search the Community

Showing results for tags 'multiple'.



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 17 results

  1. Hello guys, I'm new to this forum and to BabylonJS. The question about multiple scenes isn't new, I know. I already read some threads, but the answers didn't work for me. I need two scenes that act simultaneously. Only one scene should be visible at a time, the other should run in the background. I also want a button in each scene to switch to the other scene. For some reason I can't run my scenes with playground, so i just send you my html-files as an example. I'm sorry for the effort. 2engines.html is a modification of a version someone posted in one of the threads about two canvas and engines. It's nearly what I want, but the button to switch the scene is shown for just one scene (you can switch the scene without button by pressing '1'). I don't know if I have to use multiple canvas for my request. Multiview.html is an example how it could look like (also an experiment with multiviews). I call the createScene-function everytime to switch, so the scene will always start from the beginning. I want to switch to the other scene without restarting it, so you can see the progress of whatever happens there, while running in background. The main goal is to create a platform with a couple of minigames (solve a puzzle, realtime strategy, first-person-shooter etc.) via browser. Students can program their own agents and let them fight against pre-programmed agents. People or students that don't play should be able to watch one of those games and switch the camera (or scene) to watch another game. I'm trying to find out if it's possible to realize this concept (or rather the representation with scenes and cameras) with BabylonJS. I'm not the one creating this platform. It is part of my study project to find out, if BabylonJS is the right framework for this. Wow, that was a huge spam. I hope there wasn't too much unnecessary information and that I've made myself clear. Best regards. 2engines.html multiview.html
  2. Zampano

    Audio loop duplicating - Bug?

    Hi there, I've stumbled across some very weird audio behavior and can't seem to avoid it. I'm trying to loop a marker of my audio file, which works well on itself. Whenever pausing and resuming the audio loop at least once however, as soon as the next loop point is reached it will not stop the currently running audio and play from the marker but just add a new layer of audio that plays from the marker instead, while the old one just continues to play. And it keeps doing that for every loop. //Create { this.sfx_music = this.sound.add("key); this.sfx_music.allowMultiple = false; this.sfx_music.addMarker('turbo', 116.8696, 7.3846, 1, true); this.sfx_music.play('turbo'); } unpauseGame: function() { if(this.game.paused) { this.game.paused = false; this.sfx_music.resume(); } }, pauseGame: function() { this.sfx_music.pause(); this.game.paused = true; } Pausing the game without pausing the music doesn't cause this problem, but It's mandatory for me to pause the music when pausing the game.. Could this be a bug in sound.pause() or sound.resume()? I'm using Chrome but I have the same behavior in firefox as well. Please help! Best Zampano
  3. Hi there, I have one single OBJ file with several objects within. Each element has its unique name. Is it possible to load each object as a single mesh? Tried to do this: var parts = []; obj.onSuccess = function (task) { for(var i = 0; i < task.loadedMeshes.length; i++){ parts.push(task.loadedMeshes[i]); parts[parts - 1].material = uniqueMat; ... } } But it seems that each next mesh / geometry has all previous ones like an avalanche. Loading OBJ with 5 similar spheres as a test Geometry {delayLoadState: 0, _totalVertices: 266, _isDisposed: false, id: "c0d23769-a422-47c5-8060-fabd67a55b1a", _engine: Engine…} main.js:254 Geometry {delayLoadState: 0, _totalVertices: 532, _isDisposed: false, id: "e83a4890-a107-425d-969c-eea1f356e200", _engine: Engine…} main.js:254 Geometry {delayLoadState: 0, _totalVertices: 798, _isDisposed: false, id: "19b85286-2066-4ef7-9e95-bba19d906e71", _engine: Engine…} main.js:254 Geometry {delayLoadState: 0, _totalVertices: 1064, _isDisposed: false, id: "22bc102d-1acc-4fa8-9576-77a9915e666f", _engine: Engine…} main.js:254 Geometry {delayLoadState: 0, _totalVertices: 1330, _isDisposed: false, id: "3eb8eab7-1871-4fed-b484-c18fc881cb23", _engine: Engine…} main.js:234 0
  4. megabyterain

    Multiple Phaser Timer Events?

    Hello, So I am working on my game: https://megabyterain.itch.io/firewall and it works pretty well, but I wanted to add some features to it. Mainly, I wanted to add powerups to help keep things interesting. Anyway, while I was doing so, all the sudden I noticed my code got super messed up. No console errors pop up, but my game will just stop spawning blocks after you get a power-up. In my original game, the only timer was the one that controlled when new blocks should be created. However, when I added another timer to stop the powerups (simply changing a variable back to its original state) it seems like the timer that controls the creation of new blocks stops working. Here is some sample code createPackets: function(){ //creating the square/packets... game.time.events.add(800-(this.score*1.15),function(){ this.createPackets(); //recursive function. Worked fine before },this); } //other code and stuff //on collision if(daBlock.type == "slow"){ //if the box is a slowing powerup this.speedModifier = currentSettings.powerups.slow.amount; //set speed mofifier game.time.events.add(currentSettings.powerups.slow.time, function(){ console.log("stop slow powerup"); this.speedModifier = 1; },this); } //when I remove the second timer everything works fine, but otherwise the packets/boxes/squares stop getting created after getting a powerup
  5. Hi everyone! Is there any way in Babylon.js to combine multiple textures, or multiple materials on a single mesh? I know that it's possible to apply diffuseTexture and ambientTexture on a material at once, but if I have more than 2 textures? Like for example, it could be used for maps, having a satellite image as a base texture and then applying a layer with ambient pressure, and UV index, and wind direction, and whatnot
  6. Hello, I have a problem with adding tile maps to my phaser game. I know how to add one tile map, but I can't add multiple tile maps. I want two things, which are that I want to add these tile maps, but I also want collision between the turtle and all of the four layers. I didn't add the tile maps already to my game, because of the fact that I can't display the tilemap on my screen. I don't know why.... I get a few error's, which you can see in the images below. Does anybody knows a solution for my problem(s)? My code: var road; var turtle; var controls = {}; var Background; var Finish; var Grass; var Cars; var playState = { preload: function(){ game.load.tilemap('map', 'assets/road.json',null, Phaser.Tilemap.TILED_JSON); game.load.image('tiles', 'assets/road.png'); this.load.image('turtle', 'assets/turtles.png'); }, create:function(){ this.physics.startSystem(Phaser.Physics.ARCADE); map = game.add.tilemap('map'); map.addTilesetImage('road','tiles'); Background = map.createLayer('Background'); Background.resizeWorld(); Background.setCollisionBetween(4, 325); game.physics.arcade.enable(Background); Finish = map.createLayer('Finish'); Finish.resizeWorld(); Finish.setCollisionBetween(4, 15); game.physics.arcade.enable(Finish); Grass = map.createLayer('Grass'); Grass.resizeWorld(); Grass.setCollisionBetween(0, 325); game.physics.arcade.enable(Grass); Cars = map.createLayer('Cars'); Cars.resizeWorld(); Cars.setCollisionBetween(18,309); game.physics.arcade.enable(Cars); //Turtle this.turtle = this.add.sprite(440,450,'turtle'); this.physics.arcade.enable(this.turtle); this.turtle.enableBody = true; this.turtle.anchor.setTo(0.5); this.turtle.scale.setTo(0.2); this.turtle.body.allowGravity = false; this.turtle.body.immovable = true; this.controls = { left: this.input.keyboard.addKey(Phaser.Keyboard.LEFT), right: this.input.keyboard.addKey(Phaser.Keyboard.RIGHT), }; }, update:function(){ this.turtle.body.collideWorldBounds = true; this.turtle.body.velocity.x = 0; if (this.controls.left.isDown){ this.turtle.body.velocity.x = -200; } if (this.controls.right.isDown){ this.turtle.body.velocity.x = 200; } }, gameover:function(){ game.state.start('over'); }, Finish:function(){ game.state.start('win'); } }; My JSON file { "height":326, "layers":[ { "compression":"zlib", "data":"eJy0+GXU1dX6Bmz\/Nynd3Snd3aB0d5d0d3d3d3e3dHephEoo3SAlIKCS78Gnd\/PbjOfT86zhMVznteac57rvtaaoIf7v\/\/4vJKEI\/X\/\/+0hLOtKTgYxkIjNZyEo2spODnOQiN3nISz7yU4CCFCIZyUlByi\/0lqI0ZShLOcpTgYpUojJVqEo1qlODmtSiNnWoSz3qU4SiFOObL\/S2oCWtaE0b2tKO9nSgI53oTBe60o3u9KAnvehNH\/rSkEY05rsv9A5nBCMZxWjGMJZxjGdCYM8UpjKN6cxgJrOYzRz6M4CBDGIRi1nCUpaxnBWsZBWrWcNa1rE+0Ps9m9nCVraxnR3sZBfzmM8CFnKAgxziMEc4yjGOc4KT\/MCP\/MSpQO\/P\/MKvnOM8F7jIb\/zOHvayj\/1c5wY3ucVt7nCXe9znAX\/wkEc8DvQ+4zkv+IuXvOI1f\/MPl7nCVa7xgY+fNv\/HX\/\/5v\/95hDELy1eEIzwRiEgkIhOFqEQjOjGISSxiE4c3znrLO96TyCwxSUj6hd5UZqn5mjSkJR3pyUBGMpGZLGQlG9nJQU5yEY\/4JCAhBSh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GEu8wK9i+TFLGEpy1jOClayirGMYzwT2MBGNvE9m9nCVraxnR3sZBe72cNe9rGfAxzkEIc58v+rmK6igyAAKIAq4KQbRspGjRjd3d1dAhvd3YISgw1GNyrhUelUUEKQQ3d3CiOku8vrx\/157++d89jNHvayjxWsZBWrOcJRjnGcE5zkFKc5w1nOcZ4LXOQSl7nCVf7hGteJ4QY3ucVtDnCQQxzmAQ95xGOe8JRnPOcFL3nFa97wlne85wMf+fT\/9tn9m1jEJg5fEMAd\/V3ucZ+EskQkJglJSUZyUpCSVKQmkDSkJR3pyUBGviITQQSTmSxkJRtxiUd8EpCbUPKQl3zkpwAFKURhilCUYhSnBCUpRWnKUJZylKcCFalEZULIQU5yUZNa1KYOdalHfRrQkEY0pglNaUZzWtCSVnxNa9rQljDCaUd7qlKN6tSgK93oTg960ove9KEv\/ejPAAYyiMEMYSjD+IbhjOBbvmMkoxhNRzrRmS5EMZ4JRDORSUxmClOZxnRmMJNZzGYOc5nH9\/zAj8xnAQtZxE9EMJZxRLKEpSxjOStYySpWs4a1rOM3fmc9G\/iDP9nIJjazhb\/Yyjb+Zjs\/8wu\/spg97GUf+znAQQ5xmCMc5RjHOcFJTnGaM5zlHOe5wEUucZkrXGUHO9nFbm5yi9v8yx3uco\/7POAhj3jME57yjOe84CWveM0b3vKO93zgI9e4Tgw3iBPi2wTwJXGJR3wSkJBEJCYJSUlGclKQklSkJpA0pCUd6clARj7jc2IRmyxkJRvZCSEHOclFbkLJQ17ykZ8CFKQQhSlCUYpRnBKUpBSlyUQQwWSmIpWoTBWqUo3q1KAmtahNHepSj\/o0oCGNaEwTmtKM5rSgJa0oSznKU4Fw2tGeDnSkE53pQle60Z0e9KQXvelDX\/rRnwEMZBCDGcJQhtGaNrQljJGMYjRjiGAs44gkivFMIJqJTGIyU5jKNKYzg5nMYjZzmMs8\/gMQtU6u", "encoding":"base64", "height":326, "name":"Background", "opacity":1, "type":"tilelayer", "visible":true, "width":30, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt0UlOVQEQQNH3P73sfy9IK4pI51ilk05QcayIDVwWQDRhek5yZ5WqQQ0DADxuYTQMz2uxlmq5Vmq11upFrdfLelUb9bo2601t1Xbt1G7t1dvRv+++a+Z9faj9OqjDOqrj+lgndVpndV4X9aku66o+15f6Wtf17T\/ufm\/mR93Uz7qtX\/W7\/tTfunvYMx6GUY1roiZrqqZrpmZrrp7V\/PjJbwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABjuAY9jLnI=", "encoding":"base64", "height":326, "name":"Finish", "opacity":1, "type":"tilelayer", "visible":true, "width":30, "x":0, "y":0 }, { "compression":"zlib", "data":"eJztlwl0Duceh8ceQTZZScgqsVWVCKWWJPau9msLoaU7LVqCInRBF7Ul0dbW3hbdxL7cFu1tCUUWEdpa20u4BBFraZ8cc4+5vcnk+77M\/Ou48zvnOe+bed\/398x8mZycT1H+O2FQB8IhQpFLLLSHDtBR0DsEhsLj8ISgdwokwlSYZse5d2AWvGvGTenkC\/gSVgp7d8Me2CvsPQNnIc+gvrJlFKUclIcKZQwqtSFBuIIhBEIFvW1xtYNoiBH0xuEaBIMhXtBrxYoVc9K\/rKIMgIEQV1bOm4BrPEyAiYLeFFwL4D1430TvGrrXwjrVsYFxI2yCzSZ6s+jeB9mCn2lh8vFdhAJhr0c5RakOnuVkvbbkfu6pJbQSvre\/4esL\/YS9L+MbC+OEvfPxJUHyHfgO2JOd3P8u+AF2Cz7LKVyn4d9wRtBbubyiOEMVqFpezhuBqy7Ug\/qC3o64OkFn6CLovZMyneeeATOFn38ZvuWwQti7Hd8OSCvBm8F6JmQ5cH\/HOHMcfoFf1fMnGE9Cbgl951m\/APkOeMtU4Ls3lIPyFW5dq8hYCZwq6J91Y90dPErYVxh\/9gRALXVvIGMQBEOIDee1acT+e6GxDedasqcVPKDubcPYFtpBtJ3eh9n\/CDxqw7m+7OkH\/TV745gPstNpb8bSPw4STPYUlWScKX+B10rJKVeRv2+oABUrmuMIoL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BrA+GeOHP5RV8k2CysPcDfAthkbDXihUrVqxYsWJ7\/gDSn25K", "encoding":"base64", "height":326, "name":"Cars", "opacity":1, "type":"tilelayer", "visible":true, "width":30, "x":0, "y":0 }, { "compression":"zlib", "data":"eJzt3UXU0FW3wOH3EwETRLobVMIALEoEDMAiVFJJKQMwSJFSygCDUklJlTAIlVJSJQzAoiQNwCBU4j5Ozx2fcwf322s9C5js3+Rd8OdM9sYcGRmb2MwXxJr2F2dkdOABOnJI6zBH+C1id7DWEJ7mGS4kG9m56OJ43al2T+MNplOeClTk8ojdlXZ\/zCesoj4NuI3bI3Z32b2bH9lDZ7rQlQcjdjNyZmT8h7PIxDCt4YxgZMRuUa1iFKcEM7VmMZs5Ebs1tGpyA7VYo7WWdayP2G2p1Yr7uJ99Wvs5wMGI3b5a\/XiS\/mQmC1k5J2e87gS7X+U1XqcUpSlD2YjdJXZ\/wId8RG3qUJebIna\/sftbvuN72tCWdrSP2D1h91\/8zT8MYCCDGByxmzdXRkY+8lOASVqTmcLUiN2rta7hWq5jmdZyVrAyYreJ1t3cw71s19rBTnZF7D6q9RiP8wSntE5z5t9mrnjdF+1+iZd5hUIUpghFI3YX2P0O7\/IeValGdWpE7G62+wu+5Cua0ZwWtIzYPWL3b\/zOH\/SiN33oG7GbPbfvN3JwMWO1xjGeCRG7FbUu5wquZKHWIhazJGL3Nq3buYM72aK1lW18E7HbVetBHuJhjmod4zgnInZHaI3kWZ4jF7nJQ97c8bqz7Z7Dm7xFJSpThasjdtfZvZ5P+YyGNKIxTSJ2D9h9kJ\/4mW50pwePRuxmzeP7jXM5jxe0RjGaFyN2y2iV5RIuZa7WPOazIGK3rtZN3MwtbNDayCY2R+y202pPBx7gV61DHOZIxO4grcEM4Wku4EKykT1PvO4Uu6cyjTcoR3kqUDFid4XdK\/mYT6hHfRpwW8TuTrt3sZsf6URnutA1YvfMv7vz+r83ZzHUn4cxnBERu0W0ilKM4szQmsksZkfsVteqQU1uYLXWGtayLmK3hVZLWnEf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N15WvNZwDsJuxsT3f8NJ9X933BS3f8NJ9X933BS3f8NJ9n932BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933BS3f8NJ9X933D+B6JRuJs=", "encoding":"base64", "height":326, "name":"Grass", "opacity":1, "type":"tilelayer", "visible":true, "width":30, "x":0, "y":0 }], "nextobjectid":1, "orientation":"orthogonal", "renderorder":"right-down", "tileheight":50, "tilesets":[ { "columns":31, "firstgid":1, "image":"..\/..\/..\/..\/Users\/Merel\/Desktop\/road.png", "imageheight":17008, "imagewidth":1000, "margin":2, "name":"road", "spacing":2, "tilecount":10137, "tileheight":50, "tilewidth":30 }], "tilewidth":30, "version":1, "width":30 }
  7. He guys, I am trying to do following: var frameNames = Phaser.Animation.generateFrameNames(this.getColorById(this.gemId) + '_zap_explode_', 1, 13, '.png', 2); this.gem.animations.add('zapExplode', frameNames, this.fps, false); if the gem is from the same atlas, the other animations are playing correctly, but this one throws Uncaught TypeError: Cannot read property 'index' of undefined. Any ideas?
  8. Hi. I have a problem with multiple levels (game states). What can I do when, I don't want to write the same piece of code in each level over and over? I've tried to create a function in separate js file which e.g. will set player sprite, gravity, animations or will create necessary variables etc. And I failed this. Everything what I have got are errors.
  9. Hello guys, I would like to make a debugger such one of these: -http://www.paulallenrenton.com/individual-projects/webgl-deferred-renderer -http://codeflow.org/entries/2012/aug/25/webgl-deferred-irradiance-volumes/#debugging I am trying to use multiple rendering target with this webgl extension => (https://www.khronos.org/registry/webgl/extensions/WEBGL_draw_buffers/), so when I am rendering my scene I would like in my fragment shader to write something like this: #extension GL_EXT_draw_buffers : require precision highp float; uniform sampler2D positionSampler; uniform sampler2D normalSampler; uniform sampler2D depthSampler; uniform sampler2D stuffSampler; varying vec2 vUV2; void main(void) { gl_FragData[0] = texture2D(positionSampler, vUV2); gl_FragData[1] = texture2D(normalSampler, vUV2); gl_FragData[2] = texture2D(depthSampler, vUV2); gl_FragData[3] = texture2D(stuffSampler, vUV2); } with each gl_FragData writing in a webgl texture associated. I didn't find a lots resources about it on the internet... I am working with babylon.js, any example or help would be great. Thanks !
  10. I'm building web-pages which contain multiple iframes of Babylon.js sites. At most I've had 6 iframes on the same page with 3D content. (this one http://www.aarontyler.com.au/blog/strayashrapnel) I'm doing this because I want to sprinkle 3D elements throughout the website and it can't be done with one canvas. Is there any problem that this could cause? If so, is there a better way to do this? I previously had an issue with multiple audio engines being created but that was fixed by using the core js file without the audio engine.
  11. Hi, I'm currently working on a tile base RPG game using Phaser. function create(): controls = { up: game.input.keyboard.addKey(Phaser.Keyboard.Z), (...), shift: game.input.keyboard.addKey(Phaser.Keyboard.SHIFT) }; } If I press Z, my character needs to move and if I press SHIFT + Z, my character has to rotate towards the Z direction. function update() : if (controls.shift.isDown) { if (controls.up.isDown){ rotateCharacter(); } } else { if (controls.up.isDown){ moveCharacter(); } } Right now, when try to rotate my character using SHIFT + Z, it triggers the rotation AND the movement. If I press Z alone, the character moves as expected. I've tried checking if my SHIFT key was up but it didn't change anything. How can I achieve that? Thanks, in advance.
  12. Hi there, I'm having a bit of a problem with camera controls and multiple scenes, I'm developping a web solution with multiple scenes (allowing me to lower memory and ressources usage and "removing" the dynamic light limit ). The only issue I'm having is that when switching from a scene to an other and locking the controls of the "old" scene with "old_scene.detachControl(renderCanvas, false);" the camera controls are still applied to the camera in the "old_scene". So, when I click and drag on the renderCanvas in a scene, the cameras in all scenes are rotating, even if the controls are supposed to be detached. I guess it's related to the way BabylonJS handles eventListeners... Any suggestion ? I can't really make a demo to show the issue for now, but I hope I was clear enough...
  13. I have a problem: I can't figure out how to move a sprite with multiple keys pressed at once. A little more explanation: Button W moves the sprite Up Button S moves the sprite Down When pressed separately, it works just fine. The problems begin when I try to press several buttons at once. Problems: 1. Player presses W, and then S. What happens: W is ignored, S is processed. Sprite moves down. What is supposed to happen: Both W and S are processed. Sprite remains stationary (because both "UP" and "DOWN" buttons are pressed at once). 2. Player presses W, and then S, and then releases W. What happens: After the button is released, all the movement stops. What is supposed to happen: After W is released, sprite should move down as long as S is still held down. I tried to solve this using my own keypress handlers, but end up with either "infinite speedup while pressed" or the problem described above. I managed to do in with Python and Python - to - Javascript converter (basically a JS library that converts Python code into JS), but can't figure out how to do this using Phaser. Any help will be appreciated. The code I currently have (complicated): keyUP = this.input.keyboard.addKey(Phaser.Keyboard.W); keyUP.onDown.add(function() { this.movePlayer("left", "up", "pressed") }, this); keyUP.onUp.add(function() { this.movePlayer("left", "up", "released") }, this); keyDN = this.input.keyboard.addKey(Phaser.Keyboard.S); keyDN.onDown.add(function() { this.movePlayer("left", "down", "pressed") }, this); keyDN.onUp.add(function() { this.movePlayer("left", "down", "released") }, this);and movePlayer: function(player, direction, state) { var speedX = 0; var speedY = 0; if(player == "left") { if(direction == "up") { if(state == "pressed") { speedY = -175; } else if(state == "released") { //speedY -= -175; } } else if(direction == "down") { if(state == "pressed") { speedY = 175; } else if(state == "released") { //speedY -= 175; } } } else if(player == "right") { var addLater; } //this.playerLeft.body.velocity.y += -175; this.playerLeft.body.velocity.y = speedY; //console.log("total x:",speedX,"y:",speedY); }But it works absolutely the same as explained in tutorials - when W is pressed, set velocity to a fixed value, when W is released, set velocity to zero. I tried directly adding positive and negative values to velocity when a corresponding to key is pressed, but this leads to acceleration of the sprite (it goes faster and faster). And when I release the key, the sprite keeps moving in opposite direction (console.log made me realize there were more keyUp events than keyDown events, which is weird). What I'm trying to do: When W is pressed, increase velocity ONCE by a fixed value. When W is released, decrease velocity ONCE by same fixed value, thus stopping sprite. When both W and S are pressed, the total speed of sprite is 0 (because both add velocity in opposite directions but of same value). When one key is released and the other stays pressed, sprite is moving in that respective direction. And I can't figure out how to make this happen. I am using "onDown" because it was recommended here: http://www.html5gamedevs.com/topic/3803-question-about-keys-pressed-vs-isdown/ as the "happens once" solution. This post: http://www.html5gamedevs.com/topic/1922-justpressed-only-once/#entry35563 Makes me thing I'm making a horrible mistake here by using "movePlayer: function" instead of "function movePlayer(param){}" syntax somewhere else... but I haven't been able to figure out where the function goes. Outside of state curly brackets, maybe? When I add console.log to this function, it gets executed first 30+ times per second while button is pressed for a short period, and then thousands of times per second... does this mean that using "add" I keep adding more and more and more functions to be executed every time I press a button, leading to thousands of functions executed instead of one? If so, how do I solve this? I'm new to programming on Phaser, so any help is much appreciated. Trying to figure out how stuff works. My old code: if(this.keyboard.isDown(Phaser.Keyboard.W)) { this.playerLeft.body.velocity.y += -175; } else if(this.keyboard.isDown(Phaser.Keyboard.S)) { this.playerLeft.body.velocity.y += 175; } else { this.playerLeft.body.velocity.y = 0; }This leads to acceleration, not constant speed, and old problem with simultaneous presses remains. Using equals instead of incrementing fixes acceleration, but doesn't fix my main problem with simultaneous presses.
  14. I am currently working on a space game (my first game ever with Pixi) and I am sure there is a good chance this has been clarified before. However I am unable to understand some of the replies to other posts without wording this to my specific situation. I have an array that is storing the locations of space "lasers" (Dr Evil reference intended). I want to draw these laser beams as they move across the screen. With rapid fire enabled there might be around 20 lots of beams shooting around the screen at once. What is the best way to go about this.. I have 3 unfinished guess: 1) Create a sprite for each and when they fade off, destroy the sprite somehow 2) Create 40 or so instances of these lasers and only reposition the 20 that are actually currently on the screen 3) Create another array that stores a new sprite for each laser. As the lasers fade off, delete that array entry specifically Any advice/help would be much appreciated.
  15. I want two arcade physics bodies to single sprite, one is for horizontal collision and one is for vertical. can we do this? Advance thank you.
  16. JLevstein

    [Help] Phaser Groups and Classes

    Hi there! I'm having an issue with trying to figure out best practices with creating multiple sprites on a screen. I've been using this blog post as a reference for how to structure my game into classes: http://toastedware.com/?p=258 and so far it's been great. I like how neat it leaves my code. However, I've been trying to create multiple instances of a class and whenever a new instance appears, the previous one loses all of its properties and just drops into the ether. Any advice on how to move forward? I've tried creating a group, but I'm not sure how to pass the class into it. For reference, here is my game so far: https://github.com/JLevstein/tigertail/tree/master/js
  17. Jody Thai

    Reuse a group in multiple states

    Hi all, I have a group and want to reuse it in multiple states because the content inside this group will be the same, but currently it won't work in the second state, the group content is existed in this second state but it just never show up. Here is my codes: I have two variables in my main.js as below: (function (DaoMai) { var width = 640, height = width/(16/9); DaoMai.sceneBg; DaoMai.timeLeft = 60; DaoMai.countDownTimer = null; DaoMai.gameTime = 60; DaoMai.totalItem = 10; // all Tet items, including incorrect items DaoMai.selectedTree = null; DaoMai.mobileWidth = 0; DaoMai.mobileHeight = 0; DaoMai.gameRatio = 16/9; DaoMai.items = []; DaoMai.effectWrongItem; DaoMai.countDownTimer = null; DaoMai.timerInterval = null; DaoMai.bloomingTree; DaoMai.finalTree; DaoMai.finalTreeGroup; DaoMai.chosenTree = null; // 0 is cay Dao, 1 is cay Mai DaoMai.correctItem = 0; DaoMai.checkIcon; // the check icon at state choose tree DaoMai.checkIconTween; DaoMai.game = new Phaser.Game(width, height, Phaser.CANVAS, 'game'); DaoMai.game.state.add('Boot', DaoMai.Boot, true); DaoMai.game.state.add('Preloader', DaoMai.Preloader); DaoMai.game.state.add('MainMenu', DaoMai.MainMenu); DaoMai.game.state.add('StateChooseTree', DaoMai.StateChooseTree); DaoMai.game.state.add('StateTreeBlooming', DaoMai.StateTreeBlooming); DaoMai.game.state.add('StateMain', DaoMai.StateMain); // Now start the Boot state. DaoMai.game.state.start('Boot');}(window.DaoMai = window.DaoMai || {}));Then I create a group and a sprite in my state_tree_blooming.js. DaoMai.finalTreeGroup = this.game.add.group();DaoMai.finalTree = DaoMai.finalTreeGroup.create(0, 0, 'cayDaoBlooming');And then I want to re-use this group in another state, in this case state_I just want to re-locate this group in main.js as below: DaoMai.finalTreeGroup.x = 285;DaoMai.finalTreeGroup.y = 5;And nothing shows up. So I don't know whether a group can be used in multiple state or not, any help would be greatly appreciate. Thanks, Jody