Cybercell

Members
  • Content count

    8
  • Joined

  • Last visited

About Cybercell

  • Rank
    Newbie

Contact Methods

  • Twitter
    @Fissersboot

Recent Profile Visitors

750 profile views
  1. Dear Sir,

    We are very interested in your games and would like to buy everything you have.

    How much would this cost?

    Let me know

    Thanks.

  2. [Phaser] Bird Zap

    Fun little game. There is a bug tough. If you press pause just after the time runs out the games pauses and finishes at the same time.
  3. Blurry sprites at 60+FPS with camera lerp

    Do you mean screen tearing? Example: If not then I cant seem to find anything wrong with the example.
  4. Rotate two sprites together

    Hi, I would use vectors to rotate the ball and player. Example gif: Imagine if this circle is the little ball where the player should stand on. Now the white line is the distance the player should be placed from the center of the circle(so it looks like its standing on the ball, also make sure your players anchor point is at this feet). If you want to jump you just apply a force in the direction your hero is facing and let gravity do the work. Hope it helps!
  5. Derp nvm did not figure it out.
  6. Show Anchor Point Marker?

    You can create a simple circle graphic and make it a child of your sprite at 0,0. The circle should be at the anchor point of your sprite. Hope this help!
  7. Easiest way to save data (for level editor)

    For saving data I use localstorage. (http://www.w3schools.com/html/html5_webstorage.asp) If only you will be using it is a easy approach, just make sure you do not delete your cache. Often i create simple text box that will output the data. this can be copied into any text editor to save onto hard-drive some where. Hope this helps!
  8. Typescript Input.onDown problem

    Hi Tom, Thanks for the answer! ;D I have read more about game states and I am following this tutorial: http://www.photonstorm.com/phaser/advanced-phaser-and-typescript-projects Thanks again.
  9. Typescript Input.onDown problem

    Hi! I have been running into a problem with the Input.onDown event. Once my code is inside the create function and I add the SayHi function to the onDown event it throws a error. Sample code: class GameInitializer { game: Phaser.Game; constructor() { this.game = new Phaser.Game(window.innerWidth, window.innerHeight, Phaser.AUTO, 'content', { create: this.create }); } create() { console.log(typeof (this.SayHi));//undefined this.game.input.onDown.add(this.SayHi);//Uncaught Error: Phaser.Signal: listener is a required param of add() and should be a Function. } SayHi() { console.log("hi"); }}window.onload = () => { var game = new GameInitializer();};I have tried to figure out what the problem is and noticed that this.SayHi is undefined but have no clue why that is. So my question is how should I go about and fix this? Thanks in advance.