Ivasik

Members
  • Content Count

    34
  • Joined

  • Last visited

About Ivasik

  • Rank
    Advanced Member
  • Birthday 01/10/1999

Profile Information

  • Gender
    Male
  • Location
    Russia

Contact Methods

  • Twitter
    YouTy6bl4
  • Skype
    Yuri1.6

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. If a custom button that displays an error: Uncaught TypeError: Cannot read property 'anchor' of undefined If the text and buttons all in the same way as with anchor.set. :\
  2. For to set custom button or for button and text?
  3. this.game.width, this.game.height you need to resize the elements do not remain in place and has changed his position. //example this.play_game= this.add.button(this.game.width, this.game.height, 'test_button', this.play_game_functions, this); this.play_game.anchor.set(1.65, 7.5); resize: function(width, height) { this.play_game.x = this.game.width; this.play_game.y = this.game.height; }
  4. Ivasik

    SpriteBatch

    var expression = 1+2; //Get "Test test test" var expression = 1; //Get "Nice" switch (expression) { case 1: alert("Nice"); break; case 2: alert("Good Job!"); break; case 3: alert("Test test test"); break; default: statements_def break; } I hope I understand the question. https://jsfiddle.net/ytrtfdxm/
  5. Hi, i have a custom buttons and i want apply anchor. How to do it? Custom buttons: this.button_start = this.btn("Play a game", this.play_game, 2.03, 15.1, 2, 8.5, 140, 30); btn: function(name, functions, anc1X, anc1Y, anc2X, anc2Y, w, h) { this.button = this.game.add.button(this.game.width, this.game.height, '', functions, this); this.button.name = name; this.button.width = w; this.button.height = h; this.button.anchor.set(anc1X, anc1Y);//Temporary this.text = this.add.bitmapText(this.game.width, this.game.height, 'Text_mainmenu', this.button.name, 46); this.text.anchor.set(anc2X, anc2Y);//Temporary } /* name - the name of the button functions - button function anc1X - first anchor.setX anc1Y - first anchor.setY anc2X - two anchor.setX anc2Y - two anchor.setY */
  6. Maybe: MyGame.StateA = function (game) { this.background = null; this.sprite = null; this.windMax = 0; this.emitter1 = null; this.emitter2 = null; this.emitter3 = null; this.emitter4 = null; this.emitter5 = null; this.emitter6 = null; this.declenche; };
  7. If I write: particle.events.onInputDown.add(declenche, this); I will write that there is no such function. particle.events.onInputDown.add(this.declenche, this); Maybe the problem will disappear...
  8. Hi, how to make fullscreen not in viewport?(Like when you press F11) and with resize.
  9. Hi, how to make bold BitMapText?
  10. I need it in the form of a slider, not slider.
  11. Not right animationDuration: 0 Correctly animationDuration: 1
  12. For the future, if possible make a vertical flip(as a separate library). Example:
  13. How about "I would also like to see the implementation of the memorization of the slide at which he stopped"?