Quantcast
Channel: Latest Questions by Aydan
Browsing all 60 articles
Browse latest View live

Look at mouse problem

I hava a problem i am making a Top Down game and i have a space ship that has a turret on top i have this script to make the turret look at he mouse positionprivate var worldPos : Vector3; private var...

View Article



EnemyAI Question

Hello I'm making a Top-down game and I've got an EnemyAI script for a spaceship. The script is supposed to make it so if the player comes within 20 meters of the player then it chases the player but...

View Article

Rigidbody question

Hi I'm making a Top-Down space game and i have an enemy spaceship. I added a Rigidbody to the spaceship because it was going through walls. I froze all the rotations and froze the position on the...

View Article

Smart Suicide Bomber AI

Hello im making a top down space shooter game and i need a script for a suicide bomber that dodges bullets. heres my script for a normal suicide bomber AIvar victim : Transform; var speed : int = 5;...

View Article

making a smart Enemy AI

Hello im making a top down space shooter game and i need a script for a suicide bomber that dodges bullets. heres my script for a normal suicide bomber AIvar victim : Transform; var speed : int = 5;...

View Article


Attacking enemys

Hi I'm looking for a basic player attack script that works like oblivion's combat system I've tried burgzergarcade but I'm not trying to do the targeting thing I want to be able to walk up to a random...

View Article

auto select enemys

Hello im trying to make a game that has a fighting system like oblivion. I am trying to make it so any enemy within a certain distance of the player looses health i DON'T want it to be like most...

View Article

rotate on the Y axis

hello i have an enemy that looks at me and chases me and stuff but it rotates on all the axis to look at me so how do i make it rotate on only the Y axis to look at me? Heres what i've got at the...

View Article


Enemy spawn then select target?

Hello I have a game where the enemies spawn from a point, but when the enemy spawns it needs to know the player prefab so it can chase and attack it. Heres my script var speed : int = 5; var...

View Article


teleport in facing direction

Hello, I am making an action game and when I press space bar I want my character to teleport in the direction. I've tried `vector3.forward` but it just teleports the player in the directon the camera...

View Article

What is the most popular game genre?

Hello I was woundering what people think is the best game genre (e.g. Action/Arcade, Puzzle, Adventure.) And what makes them so good? Thanks

View Article

How to point in direction of arrow keys?

Hello everyone I'm wondering how to make my character face the direction of the arrow keys for example when I press the right arrow key I want my character to face 90 degrees on the Y axis and when I...

View Article

player look in camera direction

Hello I am working on my character and camera movement but I am having trouble. When I press the button w I want my player to face the same direction as my camera but only on the Y axis can someone...

View Article


How do I create an array of cubes?

Hello I am woundering how would I create a plane of cubes using an array like a grid of 100x100 cubes?

View Article

Snap object in game using script?

Hello I am wondering how would you snap a game object in game through script like you do when you hold Ctrl and move an object in the editor?

View Article


How do i make object look at another object only on Y-Axis?

Hello I have this script transform.rotation = Quaternion.Slerp(transform.rotation, Quaternion.LookRotation(target.position - transform.position),rotationSpeed * Time.deltaTime); but I only want the...

View Article

Add Web Player to Blogger

Hello I am trying to create a blog using blogger and I wanted to know is it possible to add Unity Web Player to my blogger blog?

View Article


Player look in camera direction problem

Hello I have this script function Update () { if (Input.GetAxis("Vertical")) transform.rotation.y = Camera.main.transform.rotation.y; if (Input.GetAxis("Horizontal")) transform.rotation.y =...

View Article

collision problem

Hello I have this script var object : Transform; function OnTriggerEnter (collision : Collider) { if(collision.object){ //Do Stuff } } what am I doing wrong?

View Article

How do I Debug.DrawLine through an array of Vector3?

Hello I have an array of Vector3's and I was wondering is there some way of using Debug.DrawLine to draw a line in the editor through all the Vector3's? For example the line goes from the array[0] to...

View Article
Browsing all 60 articles
Browse latest View live




Latest Images