osinski

Members
  • Content Count

    17
  • Joined

  • Last visited

About osinski

  • Rank
    Member

Recent Profile Visitors

456 profile views
  1. In Phaser 2.4.8 mouse events onInputOver and onInputOut are working only when you press and hold the mouse button and drug it over a sprite and out. Is it normal behaviour?
  2. Hi! Could you explain why bounds are different after timeout? function create() { var sprite = game.add.sprite(0, 0, 'phaser'); var group = game.add.group(); group.add(sprite); group.x = 200; group.y = 200; console.log(group.getBounds());///c.Rectangle {x: 0, y: 0, width: 27, height: 40, type: 22} setTimeout(()=>{console.log(group.getBounds());}, 1);///c.Rectangle {x: 200, y: 200, width: 27, height: 40, type: 22} }
  3. Hi! How can I separate object in the same scene and render them in different way? For example I have main hero and he need rendering all the time, and backstage or some static object - it need rendering once or maybe twice per level. Could you help me? Thx!
  4. I loaded 2 png rectangles instead of Graphics rectangles and made something like that var bmd = this.game.make.bitmapData(880, 881);bmd.draw('bigRect').blendDestinationOut().draw('mask', 110, 250).blendReset();this.game.add.image(897, 122, bmd);Anyone know better way?
  5. Hi! I draw 2 rectangles var bigRect = this.game.add.graphics(0, 0); bigRect.lineStyle(0); bigRect.beginFill(0x3a1603,.43); bigRect.drawRect(900, 120, 880, 880); var smallRect = this.game.add.graphics(0, 0); smallRect.lineStyle(0); smallRect.beginFill(0xFFFFFF,1); smallRect.drawRect(1100, 250, 100, 100); Can I get a hole in bigRect http://joxi.ru/8AnGvx9sNQk8rO using mask? Is it possible without mask?
  6. Hey, I have a some sort of problem. In "Chrome Beta" for android, game not scaling at all. In other browsers scale works good, but not in "Chrome Beta" . Could anybody help me? I tested phaser 2.2.1 and 2.1.1 same result(((
  7. osinski

    Customize tween

    Hi! How can I customize tweens? For example in Bounce tween I need constant bounce, not depends on distance from point A to point B. Thx!
  8. Sorry, just had seen your answer after I published mine). Thx, i'll try that
  9. Its nice plugin, thx! But It stops render at all. I want to stop render after my gamescreen created and rendered only a some area of game screen. For example when user dont click on gamescreen - I want to render only this area in the red square http://joxi.ru/dp27OkW3iX8Y27 After users clicked on gem - only gems area, and timer area, but not buttons, background, etc. Is it possible?
  10. Hey! In my game I have some groups of sprites I dont need to redraw every frame. Some backgorunds, GUI, decoration. Even games objects, when players do nothing. Can I select what sprite I need to redraw at current moment? Thx
  11. Oh! You are right!! I have old version of Phaser. I'll try remake it with new one. Thank you!!!
  12. It's no difference: function removeTiles (i, j){ var checked_tile = tilesList[i][j]; var checked_tile_x = checked_tile.x; var checked_tile_y = checked_tile.y; var boom_tile = game.add.sprite(checked_tile_x, checked_tile_y, "boom"); boom_tile.anchor.setTo(0.5, 0.5); //add animation var anim = boom_tile.animations.add("boom", [1, 2], 2); anim.onComplete.add(function() { console.log("ON COMPLETE!"); }); anim.play();}Again TypeError: anim.onComplete.add is not a function. Without onComplete all works nice.