Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - zopas tv

#46
General (Antiguo) / Test FA-MAS F1 - G1 y SCI FI
Octubre 22, 2017, 01:12:39 PM
entonces se hace desde el propio unity??
#47
General (Antiguo) / Test FA-MAS F1 - G1 y SCI FI
Octubre 22, 2017, 11:39:36 AM
buenos diseños me encantaron, me podrian decir como los haceis? tengo curiosidad 
#48
General (Antiguo) / ayuda con script de movimiento
Octubre 10, 2017, 04:34:02 PM
gracias a todos me ha funcionado.
 
una pregunta : si quiero hacer que un coche al torcer rote, que tipo de quaternion uso??
#49
General (Antiguo) / ayuda con script de movimiento
Octubre 10, 2017, 03:52:38 PM
muy buenas de nuevo, no me pasaba por aqui ya que no tenia ningun problema hasta ahora. El caso es que tengo un script de movimiento creado pero para sorpresa, al iniciar el proyecto el coche se buguea llendo para los lados y no para. 
 
¿me podeis ayudar?
 

using UnityEngine;
using System.Collections;
public class movimiento2 : MonoBehaviour {
public float Velocidad = 10f;
public    Rigidbody rig;
// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {
   float tecladoVertical = Input.GetAxisRaw ("Vertical");
   float PosZ = transform.position.z + (tecladoVertical * Velocidad * Time.deltaTime);
   transform.position = new Vector3 (PosZ, transform.position.y, transform.position.x );
}
}

 
 
#50
General (Antiguo) / problema con script de reseteo
Septiembre 30, 2017, 08:18:35 PM
Mira el is kinematic en un momento dado( cuando empieza la partida ) se pone a false pero cuando se hace hija de la barra la pelota se pone mas grande eso es l que quiero hacer
#51
General (Antiguo) / problema con script de reseteo
Septiembre 30, 2017, 03:46:08 PM
Hola!! tengo un problema ya  que al resetear las posiciones de 2 gameobjects (Barra y pelota) la pelota se va haciendo cada vez mas grande y al colocarse en la barra( transform.SetParent(Barra) ) se pone como plana. me podrian ayudar ?? Gracias. 
 

public void Reset(){
   
   transform.position = PosicionInicial;
 
   DetenerMovimiento();
}
void DetenerMovimiento(){
   
   enJuego = false;
   transform.SetParent(Barra);
   rig.isKinematic = true;
   rig.velocity = Vector3.zero;
}
#52
General (Antiguo) / ayuda con proyecto
Septiembre 25, 2017, 03:25:23 PM
 lightbug quedo claro lo primero, pedir disculpas, me habia enfadado un poco, no comprendia la situacion.
 
no estoy haciendo guerra moderna( se que es imposible) quiero hacer un juego facil he pensado hacer uno de misiones, pero sin armas, a puño limpio ( supongo que lo de golpear y quitar o perder vida es algo basico que todo el mundo debe saber hacer) no se si esta idea es realizable pero espero que si. 
 
lo de las  animaciones son para aprender a usarlas (tengo problemas con ellas).
 
he estudiado el C#, ya lo dije, pero no se como usarlo muy bien.
 
jajaj se me olvido decirlo en la presentacion, me llamo Sergio y vivo en murcia(España) tengo 13 años
 
adios
 
   
 
 
 
Cita de: TheBullet date=1506319005Te lo dije hace unas semanas, empezar por hacer todos los tutoriales oficiales de Unity. Quizás el pésimo eres tu, porque no me hiciste ni caso.
   
   
      Me ha encantado lo de insultar y a los dos mensajes pedir ayuda para una tontería. Buenísimo.
   


si que los hice jajaj solo que el ingles que tengo no es muy alto( tengo 13 años)
#53
General (Antiguo) / ayuda con proyecto
Septiembre 24, 2017, 08:53:20 PM
oigan, haber si me dicen cual es el problema-
 
Mi problema es que tengo animaciones creadas(Andar, Correr, Morir) 
 
en el codigo que he creado he puesto lo siguiente
 

using UnityEngine;
using System.Collections;
public class animaciones : MonoBehaviour {
 
// Update is called once per frame
void Update () {
   if (Input.GetKey(KeyCode.W) animation.Play(Andar);
}
}

 
me a error y no se en que he fallado ayudenme
#54
General (Antiguo) / ayuda con proyecto
Septiembre 24, 2017, 03:28:07 PM


 
*La comunidad que hay aquí es pesima. No digo que todos sean unos asquerosos, pero hay quienes lo son. En ningun momento dije que no sabia nada de programacion. 
 
*Y a la gente se la respeta, tanto como si es emprendedora o si es experimentada. Hay que aconsejar no burlarse de los novatos.
 
Por otro lado gracias a los que me han aconsejado, Me podrian decir con que empezar??
 
 
#55
General (Antiguo) / ayuda con proyecto
Septiembre 23, 2017, 01:51:59 PM
hola muy buenas, estoy buscando a alguien que me enseñe programacion, entonces se me ha ocurrido una idea,podriamos hacer un fps de guerra moderna ( como la guerra de siria) con lo que a medida que avancemos con el proyecto me vais enseñando lo basico de programacion. espero a vuestra respuesta. 
#56
General (Antiguo) / ayuda con script de movimiento(C#)
Septiembre 12, 2017, 11:25:06 AM
siento tantos mensajes, se me habia petado el ordenador
 
 
#57
General (Antiguo) / ayuda con script de movimiento(C#)
Septiembre 12, 2017, 10:45:33 AM
Hola a todos, me he decantado por crear un shooter zombie en tercera persona, he creado un game object como personaje y tiene animaciones y de todo, pero al ponerle el script de movimiento, solo va hacia delante, no puede rotar ni ir hacia ningun lado que no sea adelante. La idea es que siga al cursor para rotar y que ande con las teclas "w,a,s,d" o con las flechas, pero que ande en todas direcciones.
 
Aqui dejo el script:
 

using UnityEngine;
public class PlayerMovement : MonoBehaviour
{
    public float speed = 6f;            // The speed that the player will move at.
    Vector3 movement;                   // The vector to store the direction of the player's movement.
    Animator anim;                      // Reference to the animator component.
    Rigidbody playerRigidbody;          // Reference to the player's rigidbody.
    int floorMask;                      // A layer mask so that a ray can be cast just at gameobjects on the floor layer.
    float camRayLength = 100f;          // The length of the ray from the camera into the scene.
    void Awake ()
    {
        // Create a layer mask for the floor layer.
        floorMask = LayerMask.GetMask ("Floor");
        // Set up references.
        anim = GetComponent <Animator> ();
        playerRigidbody = GetComponent <Rigidbody> ();
    }
 
    void FixedUpdate ()
    {
        // Store the input axes.
        float h = Input.GetAxisRaw ("Horizontal");
        float v = Input.GetAxisRaw ("Vertical");
        // Move the player around the scene.
        Move (h, v);
        // Turn the player to face the mouse cursor.
        Turning ();
        // Animate the player.
        Animating (h, v);
    }
    void Move (float h, float v)
    {
        // Set the movement vector based on the axis input.
        movement.Set (h, 0f, v);
       
        // Normalise the movement vector and make it proportional to the speed per second.
        movement = movement.normalized * speed * Time.deltaTime;
        // Move the player to it's current position plus the movement.
        playerRigidbody.MovePosition (transform.position + movement);
    }
    void Turning ()
    {
        // Create a ray from the mouse cursor on screen in the direction of the camera.
        Ray camRay = Camera.main.ScreenPointToRay (Input.mousePosition);
        // Create a RaycastHit variable to store information about what was hit by the ray.
        RaycastHit floorHit;
        // Perform the raycast and if it hits something on the floor layer...
        if(Physics.Raycast (camRay, out floorHit, camRayLength, floorMask))
        {
            // Create a vector from the player to the point on the floor the raycast from the mouse hit.
            Vector3 playerToMouse = floorHit.point - transform.position;
            // Ensure the vector is entirely along the floor plane.
            playerToMouse.y = 0f;
            // Create a quaternion (rotation) based on looking down the vector from the player to the mouse.
            Quaternion newRotation = Quaternion.LookRotation (playerToMouse);
            // Set the player's rotation to this new rotation.
            playerRigidbody.MoveRotation (newRotation);
        }
    }
    void Animating (float h, float v)
    {
        // Create a boolean that is true if either of the input axes is non-zero.
        bool walking = h != 0f || v != 0f;
        // Tell the animator whether or not the player is walking.
        anim.SetBool ("IsWalking", walking);
    }
}
#58
Muchas gracias es que no entiendo de esto jajaja espero no causar ninguna molestia!!
#59
General (Antiguo) / Saludos a todos
Septiembre 12, 2017, 09:22:39 AM
Muy buenas, estoy empezando con esto de unity
 
 
#60
mira, tengo un jugador creado, pero no tiene third person controller ni nada, la idea es que se pueda mover, pero no tiene asignado un avatar en el apartado avatar del animator, como creo un avatar para ese apartado??