Jump to content

Liranan

Members
  • Content Count

    21
  • Joined

  • Last visited

About Liranan

  • Rank
    Member
  • Birthday 07/08/1985

Contact Methods

  • Website URL
    http://funsmith.es/

Profile Information

  • Gender
    Male
  • Location
    Madrid, Spain
  • Interests
    Phaser 3 game developing

Recent Profile Visitors

1044 profile views
  1. Hi! I have this Phaser 3 game inside a website. It fits a div container. At some point, you can write on a HTML input to save your score. After the mobile keyboard pops up, the canvas scrolls up and everything starts to fail. The sprites coordinates stay fixed, but the canvas keeps the scroll, even when the keyboard is already closed. I think the solution may be related with the Scale Manager, but I can't figure out what. This is my configuration. Thanks! this.config = { version: '0.0.1', type: Phaser.AUTO, pa
  2. Hello Dr Popet! Thanks a lot for your comment and feedback! It means a lot for me. It makes me very happy you and your wife enjoyed the game. I wanted to do something different for the different ages since the beginning but never figured out what. The idea of changing the shapes it's really great (I specially enjoyed the concept of dinosaur shapes), I'll keep it for a future update. If your wife and you like this kind of games you may like another one of mines: Secret Codes. You can play it here: http://funsmith.es/games/secretCodes/ Or, if you have an android de
  3. Doctor Simon's Time Crash (Download in Google Play) Doctor Simon's Time Machine has crashed and now he is stuck in a time loop! You're his only hope to come back to the present. Memorize the shapes and colors of the combinations and click the buttons on the correct order to break the loops. Travel through time and discover new ages and backgrounds. Play with special features and bonus and unlock all the rewards to complete the game. I developed this game for Ludum Dare, a JAM event in which you have to create a game from scratch in 72 hours or less. In this case, the selec
  4. Hi everyone. I'm trying to learn something about how to load database information in my phaser games. Currently, I want to load some questions for a quizz game from a SQL database. I've searched online and I found a method that works but I don't know if it's the best option. Making a XMLHttpRequest I can load a PHP file in which I load the db info and then parse it into a JSON. As I said, it works, but then I don't know how to send the results back to the game, since is an asynchronous proccess. Let me explain myself with the code: Quizz.Game.prototype = { create: fun
  5. Ok, I got it, I expected this so... no big problem. Thank you for your answers and your wisdom.
  6. Hello friends. I've a security question. I've done two mini-games for my company. I really enjoyed the chance of using Phaser in my work and not for fun, as I usally do. My boss liked it too, so good news. But he is concern because everybody are able to see the code with the elements inspector. My question is if there's some easy way to hide or protect the code from visitors, in order to avoid that our competititors steal the code for their own pages. Any advice? Thanks a lot!
  7. Amazing Game! Greaper you did a fantastic work on here. At first sight it looks like the classic idea too complicated to work well, but when you start playing you realize it's not. Its original, well-done and fun to play. Congratulations. In the other hand, I found an error. if you click too fast in several tiles, the monster appears but it doesn't die. This happens if you click in a square with a monster inside before the previous animation ended. I had all the 4-level monsters at the end of the game, and when I was sure, I clicked on all pretty fast. Some of the monsters didn'
  8. Really interesting game Skeptron. I specially like the graphics and animations. Great work! Maybe you should tell the commands somewhere before the game starts (I speak for the desktop version) I found the first robot with 3 stars unbeatable hehe. Congrats!
  9. Thank you for your answers. Tom Atom, you're absolutely right, I was being inaccurate while naming my variables. I should call 'state' to the variable I received in the constructor. I already fixed that. I tried passing to parameters (this as the state and this.game as the game) but for some reason it didn't work. Str1ngS, you give me the solution. I change the context in the Phaser.Sprite.call function, from 'state' to 'state.game'. By doing this, I can use the variable from the state function and I can also add the animations. Anyway, you're probably right about the static var
  10. Hello Rich, I've recently finished the Interphase book.

    I found it really interesting and helpful and I've noted you called it 'chapter 1'. I guess my question is, are there any news about the chapter 2?

    I can't wait to learn more from you, in a comprehensible and clear language.

    Thank You.

    Gonzalo.

  11. Hello everyone. I'm learning about extending classes so excuse me if I'm asking a silly question. What I want is to get a variable from the state and use it in the extending class constructor and functions. The state looks similar to this MyGame.Game = function(){ this.tileSize = 80; }; MyGame.Game.prototype = { create: function(){ for(var i = 0; i < 8; i++){ for(var j = 0; j < 8; j++){ var tile = new Tile(this, i, j); this.add.existing(tile); } } } }; Then, I've a exte
  12. Thank you a lot Rick, it worked pretty good. I'm keeping my system for some things because I need to re-order some of the element's depth, but the 'addChild' function will help me with some minor elements. One of the (many) good things Phaser have is you can have an answer from the guy who do the code. Thanks!
  13. Hello everyone, I have this doubt (little introduction before): I think is really helpful to use a sprite property to "store" another sprite. For example, when I have several enemies and I want all of them to have a health bar I can do something like this: var enemies = game.add.group(); for(var i = 0; i < 5; i++){ var enemy = game.add.sprite(0, 0, "enemy", 0); var health = game.add.sprite(enemy.x, enemy.y, "bar", 0); enemy.health = health; enemies.add(enemy); } By doing this, I can easily locate the health bar in the game later. For example if I want to chan
  14. That's it! It works perfectly! Thank you very much Gob0!
  15. Mmm, it sounds good but I had the same answer for 'mainState.myFunction()' Uncaught TypeError: mainState.myFunction is not a function If I move the listener and the function out of the prototype it works, but it's useless to me because I've to refer the elements inside the prototype
×
×
  • Create New...