Quantcast
Channel: Latest Questions by Ampler Games
Browsing all 90 articles
Browse latest View live

player just rotates

I'm making a very basic type of character controller, I press play and my player just rotates, this is my players properties.![alt text][1] [1]:...

View Article



Weapons on vehicle

OK, so I have a vehicle that I can drive around a terrain, but I want it to be able to shoot bullets at another object with a damage script and make those bullets inflict dameage.how would I do this?

View Article

Help with script

I'm not very good with scripting and still learning but why does this not work -function Update (){ OnCollisionEnter.Destroy(GameObject) } I know there is a very silly mistake in there but I don't know...

View Article

Health Bar Help

I need to know how I would make a health bar using java script that would go down every time you take damage, and when the health bar is empty your player turns into another prefab or ragdoll.

View Article

Hovering and even on terrain

ok so im making something very similar to the one in this video http://www.youtube.com/watch?v=3xWfBgtI_BA How is it posible to get a floating car similar to that and making it even on terrain all...

View Article


Death on collison

Ok so I am making an FPS game and i need to make certain objects destroy the player and anything that is a rigidbody when it touches it. I am really bad at scripting and would like some help. I know...

View Article

Cursor Lock

I need my cursor to be locked and hiden when I start the game, and when I press the Esc key it will show the cursor and unlock it. Does anyone know how to do this?

View Article

R key= reset

I'm not very good at scripting and i need to know how i would make the scene reset it self when I press the R button. HOW DO I DO THIS?

View Article


wasd animation when pressed

I want my players arms to move when I am pressing the wasd key, How would I do this? any help would be great

View Article


reset level on collision

Ok, so what I want to do is to make it that when ONLY the player hits a specific object it reset that level. I have tried many scripts for this but can't seem to be able to get any of them to work,...

View Article

Head Movement

I need to make it so that when I am touching the ground and moving my players head camera will start to bob using a script. how would I do this and make it look realistic?

View Article

No headbob when jumping

I got this script from unity answers. private var timer = 0.0; var bobbingSpeed = 0.18; var bobbingAmount = 0.2; var midpoint = 2.0; function Update () { waveslice = 0.0; horizontal =...

View Article

Drag from a distance

I have been using the default drag rigidbody script that come with unity, I would like to know to make it so that you can drag it from only a close range(about 2 meters)

View Article


how do I rain?

Hello all, Trying to get rain to work in my game, but I've tried scripts and particle streams but can seam to get them to work. Does anyone know a good way to make rain???

View Article

Scroll Wheel Item Change

I have tried to get this to work with many scripts but I want to know how to change the item your holding using the scroll wheel so that you can basically drag and drop the prefabs into different boxes...

View Article


Lerps tut- pro?

Just a quick question, I am thinking of doing the lerps tut, but I am wondering if I need unity pro or not, because I don't want to download the file if it is just going to be a waste of time.

View Article

How do I make a scene switch over on a timer

I need to be able to switch scenes on a timer with a fade in and out transition. Can some one please help!

View Article


Create gameobject object on click

I need to get a script, that when I click the left mouse button, it will create a game object. but the game object has to be inserted in a grid if you know what I mean.

View Article

LERPZ levelstatus js error. ??????????

Hey everyone, I am having something strange happening with the Lerpz tut. I copied the level status script from the index thing at the end of the tut and when ever I press play for some reason it stops...

View Article

My Js Script is not working

Hi everyone, I am really bad at scripting and I want to know what to do to make this simple script work. function Update () {OnCollisionEnter= Application.LoadLevel(1); } I want to make it so that when...

View Article
Browsing all 90 articles
Browse latest View live




Latest Images