JavaNerd

Members
  • Content count

    16
  • Joined

  • Last visited

About JavaNerd

  • Rank
    Member

Recent Profile Visitors

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

  1. JavaNerd

    Sound Events

    How do you do a sound event in Phaser 3, like do an action once sound is finished playing or stopped?
  2. JavaNerd

    Trail of the Dead

    Created using Phaser 3, support for mobile and computer. Currently in development. You can play a demo at http://trailofthedead.drennansoftware.com My inspiration for the game is Oregon Trail. In the coming weeks, I will be working on an inventory management, hunger, and rest system.
  3. JavaNerd

    Online Zoo Builder

    I now have a playable demo! Play a demo of the game on my website, http://onlinezoobuilder.com I'm still working on balancing the game and making changes so that the player has to progress to unlock animals and buildings, rather than having the ability to build anything at anytime, as long as they have the funds. Would love to hear some feedback! For the meantime, all the extra content that will be future micro-transactions, have been unlocked for testing. I have added multi-touch support to better support mobile devices! You can now either long press in the direction you want to move the map around, or place two fingers on the screen and move them around to manipulate the direction you wish to move too.
  4. JavaNerd

    Online Zoo Builder

    Online Zoo builder is a FREE to play online zoo building game that can be played anywhere! Play using your Apple, Android, or computer. Collaborate with your friends and build your ultimate dream zoo, discover and purchase new animals and attractions to keep your guests happy, and manage your zoo to ensure profitability. Updated weekly with new animals, tiles, and attractions! Do you have what it takes to build the zoo of your dreams? Created using Phaser 3.10.1. Online Zoo Builder has online components that allow players to save multiple zoos to their online profile, share their creation with friends, purchase virtual currency, items, and extra content. I'm interested in seeking a sponsor for an exclusive license. PM me for details. Check out some alpha gameplay videos below. My first ever HTML 5 game! ☺️😎 This is not the final game. This is still a work in progress. You will see grass overgrowing and animals going hungry quickly. This was for testing purposes. Some graphics and gameplay elements are still being worked on. Players can also add animals to a farm and plants to a greenhouse. Once the player is finished mowing the lawn, all grass will be cut in the zoo; removing all overgrown grass. If animals are not fed, it will first show the thought bubble with a chicken to warn the player. After sometime, the animal will go rogue, and the player will be forced to shoot the animal. Showing how to feed animals. Food is generated at factories, which the player will have to click on to collect. Money is also generated on enclosures and buildings, which the player will have to collect.
  5. JavaNerd

    Tilemap animated tiles

    I accomplished it by making it so when the player clicks on the game with an animated tile, it spawns the animated tile sprite over the tile map, where it would of went. When a user changes it back to a static tile, it deletes the sprite over the tile map. For example, if a player chooses water it spawns the static water tile in the tile map, but also spawns the animated water sprite on top of it. The player will never notice the static water image under the animated one. When a player changes it back to dirt, it will delete the water sprite and change the water tilemap to dirt. Hope this helps someone!
  6. JavaNerd

    Tilemap animated tiles

    Is it possible to animate tilemap tiles in Phaser 3, and if so how? For example, I have a water tile, which is a 4 frame animation.
  7. JavaNerd

    Changing Scene Issue

    It does not get started twice.
  8. JavaNerd

    Changing Scene Issue

    Yes
  9. JavaNerd

    Changing Scene Issue

    Okay, so this is weird. I left my input listeners in my create function, but surrounded it with this if(gameLoaded) { } at the bottom of my create function, I put: gameLoaded = true; This prevented my input listeners from being repeated. But then my console.log went from 4 to 2 times per click. Then after each time of leaving the scene and coming back, it would go up by one. I then removed the gameLoaded check from around my input listeners and then added this code: if(gameLoaded % 2) { this.scene.restart(); } and put it at the top of my create function. and put this at the bottom of my create function: gameLoaded++; with gameLoaded set to 1 initially. Now my game works as intended, but this seems like a bit of a hacky workaround. Is there a better way to accomplish not repeating input listeners and changing scenes back and forth?
  10. JavaNerd

    Changing Scene Issue

    In my game, when I change scenes from the main scene, to another, and then back to the main scene, it starts picking up additional input actions. For example, if I put console.log("") in: this.input.on('pointerup', function () {}, this); it will print 4 times. Any idea on how to fix this or what is going on?
  11. I'm looking for a 2D artist who can create sprites similar to the ones below. PM for more details.
  12. JavaNerd

    Spawn an image when clicking a button

    Once again, thank you!
  13. I keep getting this.add is undefined. // Building button ui1.on('pointerdown', function () { var window = this.add.image(0, 0, 'window').setOrigin(0); window.setScrollFactor(0); window.setDepth(1002); window.x = 20; window.y = 20; }); I'm trying to spawn an image into the game when the user clicks on the button.
  14. JavaNerd

    Reference dynamic sprite

    This example worked. Thank you.
  15. JavaNerd

    Reference dynamic sprite

    Sorry, last time I coded is when I was working with AS2, and I'm picking this up slowly. var sprite = this.add.sprite(pointer.x + cam.scrollX, pointer.y + cam.scrollY, 'small_fence').setInteractive(); sprite.iName = fenceCount; sprite.on('pointerdown', function () { this.destroy(); }) I spawn sprites in and make them interactive. What I'm trying to do is, I want to reference these sprites later. How can I reference a specific sprite? For example in AS2, I used to be able to give them an instance name like "Sprite1." I would then be able to reference it later like: _root.Sprite1 Is there a way to do this with Phaser, so I can manipulate the sprite when I can't use this.