I have been working on my latest game, and I ran into an issue with jumping. The issue is that when the player presses the jump button, in my case the A button on the controller, I wanted the character to jump. By releasing the jump button instead of holding it down I wanted the character to jump short of the max height that they could reach.
Well, I found a solution that I was able to incorporate into my project and I wanted to share the solution with you in case you were also running into this issue.
Below is a post I found on the unity3D subreddit from the user dookie-boy where he talks about how he accomplished this feat.
So I made it so the player can take damage from objects that are supposed to hurt him, hurray! I also added a UI element so the player knows he is being hurt. Next up will be maybe some sort of bounce to shoot the player away from the danger or maybe some enemies to mess around with.
I started a new project! It’s in the beginning stages but I think it is coming along pretty great. Tonight I’ll be adding collectibles. Check back for more updates in the future.
Operation: website update is coming together nicely. I am also in the process of learning more about particle systems in Unity so I should have some new content dealing with game updates to add shortly. In the meantime, I have uploaded some gameplay of Laser Defender for your enjoyment.
I have majorly updated the website with a lot of media dealing with all the projects I have worked on in the past. I am missing a few from my RPG Maker days but I am digging through my portable hard drive to try and locate them. I should be able to update them shortly.
I have some great news! I was able to get a working prototype of Nations of Glitch and make a gameplay video of it 🙂 Enjoy.
Development has taken a slight turn and I had to scrap the enemies at this point. The reason is because I created a custom script that controls the player but it seemed to be interfering with the gravity in the game. This was becoming an issue because as I would create stairs and ramps the player would start to float when interacting with them. Instead of delving into my code to locate the issue I decided to deactivate it all together and continue with the more interesting aspects of the game such as an inventory system, locked doors, switches, etc.
I was able to add a roughly designed a GUIBox with a message that pops up when you can’t enter an area due to a locked gate. I then added a switch that the player walks on and activates that will trigger the gate to open.
What awaits the player on the other side of the gate?
It’s a treasure chest, that opens.
I have added an area in the game where the player will select which level they would like to play. In that area, the player will walk to a warp pad and will be taken to the corresponding level. I have a story in mind, but until I can flesh out at least 10 levels I will be keeping that a secret.
There is no real concept detailing what is going on in the video because I have not added any tags or cinematics, but I can break it down for you.
- The first screen is the main menu where you will start your game.
- The second area, after clicking “Play Game” is the area where the player will select which level they want to play. For this area, in the future, I will add hovering icons over the level that show the score the player received if they have played the level, and a few other details such as the level name.
- Finally, the third screen is the “Game Over” screen which shows what score you have earned from the level you just played.
Yesterday was a semi-failure with getting the mechanics of melee battle to work. I created melee weapons but I can’t figure out how to push back the enemies after they are hit by the player.
Besides that I have been messing with the environment and trying to wrap my head around how to use blender to create an actual player and some enemies (instead of “pill” people.)
Video soon to come…
I updated the script that is used to control the enemy AI to include a random movement and a range that detects when the player is within a certain area. When the player enters the range defined in the code it will trigger the enemy to chase the player until the player passes outside of that defined range.
I finally had a chance to add dual analogs to my game thanks to some help from a fellow Unity developer. I can now focus on mobile development and update my game to reflect the smaller screen size.
As you can see from the video I have to update the UI now and I also have to update the players’ position so that he doesn’t always snap to a “UP” position every time you let go of the joystick.