thefootballguy

Members
  • Content Count

    16
  • Joined

  • Last visited

About thefootballguy

  • Rank
    Member

Recent Profile Visitors

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

  1. CODE PEN: http://codepen.io/thefootballdaddy/pen/GjKvYE I have been trying to fix this problem for days any help will greatly be appreciated. The problems I am having is: A: The collisions between objects are in the Moveable group are falling on top of one another. By pressing The '1' key a few times you can see that collectable group collides and stack but they will sink to one another after 2-3 stacks. Looked around HTML5 and old post on the fourm but the solution wasn't found. B. The collisions between immovable objects are not colliding with each other and are occupying the same place. Using immovable objects by pressing 3 a few times creates the immovable white blocks but they won't stack. Again thanks for reading my post.
  2. thefootballguy

    Easystar.js Pathfinding Help

    Look at this guy implementation of easystar. By all means, I am no expert, however, he has source code, examples, and if you use google translate a pretty good explanation. http://apprendre-le-js.com/mmo-phaser-express-socket-par-1/
  3. Working with a friend so, still more less the question can be of sending tiled data between client server through map array would be nice.
  4. I found this ^ for looping through all the map. However, I just want to count how many tiles are there at the moment. Any help will be helpful friends.
  5. thefootballguy

    Why does this happen On Phaser Tiled example code?

    Oh snaps added the link.
  6. There is only one of the coins falling and I don't understand why that is. I looked at the code but I can't seem to figure it out.You will have to reload the page if you miss it ( it is the 5th coin from the left). http://phaser.io/examples/v2/tilemaps/create-from-objects
  7. I am looking for ways to go about creating a sandbox/open world game where anything in the environment can be destroyed/changed. I have been searching for hours for examples of these but to no success. Any help will greatly be appreciated.
  8. I am trying to create a simple Multidimensional array that will add a sprite to the spot example [0,0] I was following how this http://www.joshmorony.com/how-to-create-a-candy-crush-or-bejeweled-game-in-phaser/ was doing by doing something similar like: this.tileGrid = [ [null, null, null, null, null, null], [null, null, null, null, null, null], [null, null, null, null, null, null], [null, null, null, null, null, null], [null, null, null, null, null, null], [null, null, null, null, null, null] ]; but all I want is being change those position in the grid to sprite and none of the animation just simply to be there. addTileItem: function(x, y){ //Choose a random tile to add var tileToAdd = this.tileTypes[1]; //Add the tile at the correct x position, but add it to the top of the game (so we can slide it in) var tile = this.tiles.create((x * this.tileWidth) + this.tileWidth / 2, 0, tileToAdd); //Animate the tile into the correct vertical position this.game.add.tween(tile).to({y:y*this.tileHeight+(this.tileHeight/2)}, 500, Phaser.Easing.Linear.In, true) //Set the tiles anchor point to the center tile.anchor.setTo(0.5, 0.5); //Enable input on the tile tile.inputEnabled = true; //Keep track of the type of tile that was added tile.tileType = tileToAdd; //Trigger the tileDown function whenever the user clicks or taps on this tile tile.events.onInputDown.add(this.tileDown, this); return tile; }, I think I am overthinking the problem but I been at this for a while any help would be greatly appreciated.
  9. thefootballguy

    Developing a persistant Game World

    Let's say I would want build a multiplayer game about build a tower (simple blocks) on a big game world that stayed updated based on players constructions. How would you go about to ensure that users stay in creations and runs well.
  10. thefootballguy

    What is the Best way to save Bitmap data to database for Phaser to use?

    Well thanks for the help @VitaZheltyakov but I finally figured out using it just using nodejs-redis examples. However, I don't know how to access the data OUTSIDE of nodejs main "app.js" file. If anyone can help, I will greatly appreciate it. http://stackoverflow.com/questions/37956668/how-to-access-string-data-from-redis-through-another-js-file-in-nodejs
  11. thefootballguy

    What is the Best way to save Bitmap data to database for Phaser to use?

    I am sorry I don't understand care to explain @VitaZheltyakov
  12. I am trying to save sprite data to a database and being able to change it later. but I am having trouble figuring out how to implement this. (preferable redis) db.hmset("graphics:dude", JSON.stringify(dudeData)); var dudeData = [ '.......3.....', '......333....', '....5343335..', '...332333333.', '..33333333333', '..37773337773', '..38587778583', '..38588888583', '..37888888873', '...333333333.', '.F....5556...', '3E34.6757.6..', '.E.55.666.5..', '......777.5..', '.....6..7....', '.....7..7....' ]; Then use something like JSON.parse() to get the data back?
  13. thefootballguy

    Why can't bitmapData load correctly the first time?

    Yes It looks like only polyline http://phaser.io/examples/v2/create/polyline Is the only one that works completly
  14. thefootballguy

    Why can't bitmapData load correctly the first time?

    Running the generating sprite example locally in firefox. Offline with just code gave me the same thing.
  15. thefootballguy

    Why can't bitmapData load correctly the first time?

    Using Firefox, it did not display the sprite. Firefox/Windows 8 (in private browsing) Firefox/xUbuntu Chrome Works tho Link to me loading https://gyazo.com/99aad2e9e22fd9376983b98fc3fb6e2f Picture of What it is displaying (unloaded sprite)