Morokkoikitai

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. Morokkoikitai

    How to use tween.onUpdate in typescrpt

    understood. onUpdate: function() =>
  2. Morokkoikitai

    How to use tween.onUpdate in typescrpt

    hello. i want to know how to path context to tween.onupdate. i.e ----------------------------------------------------------- let t = this.tweens.add({ targets: this.follower, t:1, ease: 'Sine.easeInOut', duration: this.curve.getLength(), onUpdate: function() { this.player.x = this.follower.vec.x this.player.y = this.follower.vec.y }, }) ------------------------------------------------------ is not work. thanks.
  3. Morokkoikitai

    this.cameras.main.setAlpha is not a function

    not work at 3.15. camera.main.scrollY is working. my work is typescript.
  4. hello. this.cameras.main.setAlpha(0); gives this. why? thanks.
  5. Hello. In my mobile game, input.activepointer returns wrong coordinate. in example, i put my pointer on left top side, I expect (activepointer.x, actiovepointer.y) return (0,0). But it returns wrong position(please refer to my screenshot ). Oddly enough ,this occurs only Chrome Mobile(android). In IOS and other browser, it returns correct positon (0,0) .  How to Fix it? I think, it can fix If i can add offset to activepointer.position, but i dont know how to do. Thanks.