Here’s the code
var bulletPrefab:Transform;
function Update ()
{
if(Input.GetButtonDown("Fire Up"))
{
var upBullet=Instantiate(bulletPrefab, GameObject.Find("spawnUp").transform.position,Quaternion.identity);
}
if(Input.GetButtonDown("Fire Right"))
{
var rightBullet=Instantiate(bulletPrefab, GameObject.Find("spawnRight").transform.position,Quaternion.identity);
}
if(Input.GetButtonDown("Fire Left"))
{
var leftBullet=Instantiate(bulletPrefab, GameObject.Find("spawnLeft").transform.position,Quaternion.identity);
}
if(Input.GetButtonDown("Fire Down"))
{
var downBullet=Instantiate(bulletPrefab, GameObject.Find("spawnDown").transform.position,Quaternion.identity);
}
all the buttons work, it instantiates everything correctly under any single direction move or stationary HOWEVER… sometimes they wont work when moving diaganoly (two motion inputs going at once)
ie right fire wont work if im also going up and right
down and left fire wont work if im also going down and to the left
etc
I’m using the standard first person controller that comes with unity4
I’ve turned on and off the platform follow, jump, and slide.
I already checked to make sure there weren’t overlapping key inputs or something
I already checked to make sure the spawn points weren’t too close to the character input thingy and causeing some weird collision issue
I don’t know what else to look at