-
Content Count
72 -
Joined
-
Last visited
Everything posted by 3ddy
-
I don't remember correctly, but you have probably compiled something called "Developer App" or whatever it is called right now . Try normal "Compile" option.
-
chat [*][*][*] @rich it would be awesome to have the chat rewritten, because it was randomly kicking ppl from time to time, also there were some troubles with users list in chat, but we miss that place, even with those bugs
-
From Phaser docs: "Note that killing a Game Object is a way for you to quickly recycle it in an object pool, it doesn't destroy the object or free it up from memory." It shouldn't be deleted from group. You can easily debug it using some console.logs.
-
I don't understand your problem exactly, but -1 is responsible for infinite loop, change it to 0 if you don't want "move non stop". If you don't want the tween to go back to starting position (yoyo effect), change last true to false; Check documentation for list of parameters : http://phaser.io/docs/2.4.4/Phaser.Tween.html#to
-
As far as I remember you have setText function in this plugin.
-
init -> preload -> create https://phaser.io/docs/2.6.2/Phaser.State.html#methods you can learn more here, I think there was some Phaser StateManager ebook or smth like that and there was some nice diagram showing what is called in order
-
There is some protection on iPhones that allows to play sound only after some user input (touch event, button click etc.). Can't help you with some workaround, but there were plenty of similar topics here.
-
Hello, I'm trying to call the keyboard on click (InputDown) event. Everything works fine in Android, but on iOS the keyboard doesn't show. I'm running the app through Cocoon Developer App using .zip file openKeyboard: function() { Cocoon.Dialog.showKeyboard({ type: Cocoon.Dialog.keyboardType.TEXT, }, { insertText: function(inserted) { console.log(inserted); }, deleteBackward: function() { console.log("deleteBackward"); }, done: function() {
-
tl;dr when I move parent, child position is updated too late, how to manually force to update child position when I move parent? Hello, in my game I have a group of sprite objects (Ships) this.shipsGroup = game.add.group(); Each Ship before adding to this.shipsGroup have two other groups as children : var actualShip = game.add.group(); var surrounding = game.add.group(); for (var m = 0; m < 3; m++) { var temp = game.add.sprite(-halfSize - 50 + l*50, tempy, 'red'); temp.anchor.setTo(0,1); tempy+=50; if(m == 1 && l > 0 && l < ship.unitS
-
Hey, maybe you should use https://phaser.io/docs/2.3.0/Phaser.Animation.html#stop with onComplete event?
-
Why not add http://phaser.io/docs/2.2.2/Phaser.Events.html#onInputOver to character, instead those update loop you made? You are calling playCharacterDialogue every frame if pointer is over character
-
To open the dedicated Console panel, either: Press Ctrl+Shift+J (Windows / Linux) or Cmd+Opt+J (Mac). If DevTools is already open, press the Console button.
-
You can use that delay as 'loading screen' maybe someone will come with better solution.
-
Are you trying to use that font in the beginning of body section? If yes and it still don't work maybe your game is launching faster than browser loading font - try to make some delay before using font ingame
-
Hello, try to preload the font before using it in-game (just write some dot not visible on the screen before creating Phaser game). I use the code below: <style type="text/css"> @font-face { font-family: 'SlimJim'; src: url('assets/slim-jim/SlimJim.ttf') format("truetype"); } body{ background: #000000; padding:0px; margin:0px; } .fontPreload { font-family: 'SlimJim'; position:absolute; left:-100px; } </style> and then in body <div class="fontPreload">.</div>
-
try using CANVAS renderer during game initialization
- 8 replies
-
- lag
- performance
-
(and 2 more)
Tagged with:
-
How to get current frame NUMBER (not index) - Phaser Animation
3ddy replied to kosmoskolio's topic in Phaser 2
Maybe try to use http://phaser.io/docs/2.3.0/Phaser.Animation.html#onUpdate and create some counter. When counter reaches animation length then reset it and count again. -
He meant that you should change setALL to setAll in last line of posted code It should be group.setAll('scale.setTo', 2);
-
You can create array with all graphic names and then just randomly choose one from this array