I have a little bit of free time on my hands, so I decided I should fill it with programming (is there anything else?)
Recently, I have noticed that most of my time on these forums has been filled up with answering beginner questions about how to make X script, or why doesn’t Y script work. In a perfect world, they would be able to answer these questions themselves, but alas, there is no such thing.
My plan is to let people post what they would like me to work on and in order of what I think is most important/easiest, (I don’t have THAT much time on my hands) I would work on them. Upon finishing, or at least close to finishing, I would create a thread in Showcase with a link to the code and instructions on how to use it, and finally edit this post with a link to the appropriate Showcase thread.
Let the suggestions commence!
EDIT: I would prefer that the scripts are useable in a variety of cases, and if I get multiple suggestions without a clear winner, I will start a poll.
Well I’ll suggest something interesting that I was going to work on soon, but I may as well see someone else implementation for inspiration.
Record the position/orientation of every rigid body and character controller in a scene every frame then play them back at the exact same time intervals. Effectively a replay system.
Since fps will differ on recording compared to playback you’ll need to record time of each capture as you will potentially have to skip or extend a frame over a period depending on whether your recorded fps is higher or lower than your playback.
Whatever language you prefer, I have no issue converting javascript to c#.
Have fun =)
-Extension
If you’re really having a blast, to reduce memory and disk usage, you should add some form of lossless compression that the script can still handle for playback. For starters don’t rerecord or update an object that hasn’t moved position from the previous frame.
I’ve been researching this morning on how to deform a mesh a specific way. I am hoping to flatten a terrain mesh to a specific height (say y = 0) at a specific area (1x1) on mouse click.
It’s not a spectacular problem but I figured I’d throw it out there.
I was looking more along the lines of “A fully customizable health bar” or “easy to use inventory”
In other words, I would like to make something beginners to Unity could use extensively. If there is no need of these, I don’t mind working on something a bit higher tier, but my original goal was to help out the beginners.
A Fatique bar… That’ll make the target slow down when fatiqued - eventually pause for getting air if it runs out.
a 24 hour ingame-time clock to link to a day/night cycle, that you could be shown when pressing a button
an oldschool inventory system, something like Diablo. Where different sized “stuff” takes up one or multiple slots, and there are slots for different armor parts.
Thats a couple of suggestions - of course hopefully served with a little on the side to help us beginners learn what’s actually going on
This is done in a 3D Modelling application, or with Unity’s animation editor
I would like to see a script which would show basic character movement. This is because it will benefit many people, as opposed to those who want to see something extreme, that only they will find a use for.
Could you elaborate a bit on the movement? I’m not sure if it will be useful, as most people use the pre-made controllers under the standard assets for their characters.
hmm… well, one script that i’ve been agonizing over is a movement script… where the character goes up, down, right and left with the WASD keys but will make the character face the direction they’re moving (which could be overridden with a mouseclick-to-target/shoot) like the 3rd person script in the tutorials (but not glitchy… as in, if you try to use that script, it’s almost like if you go left then immidiately go right, it’ll keep going left for a few beats until the “turn character” part of the script kicks in. i think that’s more to do with the lerp/slerp function to orient it… so, maybe a “forced override” to SNAP it to the right direction immidiately instead of a smooth turn?)
dunno… i’m not a good coder so i’ve been working on assets this whole time… but sooner or later i’ll have to get the scripts going…and i’m not looking forward to that.
I feel rather powerless at the moment. I just attempted to change my poll to a few options of scripts for me to make… until I found out I could not edit my poll.
Is there something I’m missing (most likely)? Or once you create a poll, can you never reset it/create a new poll? Help would be greatly appreciated.
Its already done in the FPS tutorial! Look harder…
Theres a few threads that already have done this, and a site that has an example of it, google it!
Dman, i think your doing a good thing to help out the community since programming tends to be a weak area for many users, make sure that you ask the community to ask for scripts that have NOT been already made (Like an AI script thats already made in a tutorial)
Good luck!
(I dont have a request btw I usually get a way around programming)
I’m actually working on a game for school and I’ve yet been able to find a tutorial or even a snippet of info on how to do this. Help would be immensely helpful. I’m working on a 3rd person side scroller and looking to find out how to make the character crouch when a button is pressed (ex. ctrl).
function Update () {
if (Input.GetKeyDown ("space")) // The space key will make your character crouch, change space for anything you want.
animation.Play("crouch"); // Plays the crouch animation. Make sure your animation is looped, otherwise this'll get jumpy.
}