• Content count

  • Joined

  • Last visited

About cpu_sam

  • Rank
    Advanced Member

Contact Methods

  • Twitter
  1. cpu_sam

    eLearning game for kids that teaches Javascript and Python

    Just give a hint: if you can so put some images in the post, because the image motivates to visitates the site more than any text.
  2. Thanks, I'll follow this issue.
  3. I was thinking that Sprite.update was called every frame update automatically. Like I've searched for some human example and not found any, so I cannot to learn the "right"way. And once time again @samme thanks a lot!
  4. cpu_sam

    Help with simple code with ES6 and phaser 3

    I abandoned ES 6 and now I use pure Typescript 2, thanks for the attention.
  5. Reading this topic above, I've found that Sprite.update it's not called, however: how can I call the update in the main.update? I've tried the code in the topic but it doesn't works for me, that without the directly reference to player object. But I would like to call the Player.Sprite.update without the player reference explicitly declared in the source. Can anyone help me?
  6. cpu_sam

    About Javascript and Typescript with Phaser

    Ok, thank you for the answers. I was planning toi change JS for the TS. Now I can finally make one simple example with TS after many hours trying.
  7. I'm since yesterday to run a simple example with phaser3 and I can't run. For example, I've tried ES6, so syntax error on import (even with the code with no errors). So, I tried typescript 2, but give me some errors on compile time. I want any help to answer this simple question to avoid a hert attack: 1-What's the Javascript version indicates to use with Phser 3? 2-Which Typescript version (and compiler version) should I use with Phaser 3? 3-do I need use some programma like browserify/wbpack to pack my game and distribute it? Please, if you only knows answer one question, so answer me. Greetings
  8. Hello, so, I was here reading and reading and reading and studying codes a lot and I can't resolve a simple problem: how to make a little example with Phaser 3. when I try to import Phaser as a module with the command: import * as Phaser from "./phaser3.8.0.js"; It gives me the follow error: But the import is already on top level of main module. Or even if I try to import my Player classe with the following: import Player from "./myPlayer.js"; Where myPlayer.js is the class file with a extends of Player with Phaser.GameObjects.Sprite.
  9. Thank you for the example man
  10. So, is there a default class to derivate for make Players in phaser 3? I'm new to this phaser version, I know a little about Phaser 2, but make sometime that I don't use Phaser or even any html5 framework/engine
  11. cpu_sam

    [SOLVED] Remove child properly from mesh

    wow man, I've search something like that in google, but without found it. Thank you
  12. Hi, I'm trying to remove correctly one child from its parent by making child.parent = null; But the child keeps invisible after this operation. How can I make the correct way?
  13. cpu_sam


    Interessante cara, esse jogo tem uma ideia boa. O legal é mesmo simples dá pra aprender alguma coisa sobre cooperação em grupo, mesmo sendo invisiveis os users rsrrs.
  14. I found it! https://doc.babylonjs.com/features/position,_rotation,_scaling So easy, sorry for inconvenient
  15. How can I get the local vector orientation? Like, is there a matrix holding the sense of front of the mesh? How can I acess it? I say this because the translate method knows the "orientation" if I just translate in one axis only and the mesh move forward in that local axis.