miércoles, 30 de junio de 2021

Violencia en videojuegos.;

Violencia en videojuegos.

Nuevo adelanto, empiezo a hacer personajes como el señor trajeado fumando en el metro y la mujer lijera de ideas, y mucha violencia, sangre en el suelo sangre en el asiento, cabezas volando, y cuerpos mutilados temblando por los nervios segmentados del cuello, todo muy desagradable, recuerdo a los lectores que ahora mis videojuegos se centraran en mayores de 18 años no aptos para gente sensible tampoco.

 




domingo, 27 de junio de 2021

Arranco las cabezas de un zarpazo con el script de ActivateTrigger,;GIMP 2.10.12;Trail Renderer;Unity;

 


Bien sigo con mi videojuego comentando últimos de talles del trabajo.

 


Ahora explicare como arranco las cabezas de un zarpazo con el script de ActivateTrigger, pondré el script para el que lo quiera copiar, creo que ya lo e puesto mas de 10 veces a lo largo de mi blog, pues otra vez porque es indispensable.

  using System;
using UnityEngine;
using Object = UnityEngine.Object;

namespace UnityStandardAssets.Utility
{
    public class ActivateTrigger : MonoBehaviour
    {
        // A multi-purpose script which causes an action to occur when
        // a trigger collider is entered.
        public enum Mode
        {
            Trigger = 0,    // Just broadcast the action on to the target
            Replace = 1,    // replace target with source
            Activate = 2,   // Activate the target GameObject
            Enable = 3,     // Enable a component
            Animate = 4,    // Start animation on target
            Deactivate = 5  // Decativate target GameObject
        }

        public Mode action = Mode.Activate;         // The action to accomplish
        public Object target;                       // The game object to affect. If none, the trigger work on this game object
        public GameObject source;
        public int triggerCount = 1;
        public bool repeatTrigger = false;


        private void DoActivateTrigger()
        {
            triggerCount--;

            if (triggerCount == 0 || repeatTrigger)
            {
                Object currentTarget = target ?? gameObject;
                Behaviour targetBehaviour = currentTarget as Behaviour;
                GameObject targetGameObject = currentTarget as GameObject;
                if (targetBehaviour != null)
                {
                    targetGameObject = targetBehaviour.gameObject;
                }

                switch (action)
                {
                    case Mode.Trigger:
                        if (targetGameObject != null)
                        {
                            targetGameObject.BroadcastMessage("DoActivateTrigger");
                        }
                        break;
                    case Mode.Replace:
                        if (source != null)
                        {
                            if (targetGameObject != null)
                            {
                                Instantiate(source, targetGameObject.transform.position,
                                            targetGameObject.transform.rotation);
                                DestroyObject(targetGameObject);
                            }
                        }
                        break;
                    case Mode.Activate:
                        if (targetGameObject != null)
                        {
                            targetGameObject.SetActive(true);
                        }
                        break;
                    case Mode.Enable:
                        if (targetBehaviour != null)
                        {
                            targetBehaviour.enabled = true;
                        }
                        break;
                    case Mode.Animate:
                        if (targetGameObject != null)
                        {
                            targetGameObject.GetComponent<Animation>().Play();
                        }
                        break;
                    case Mode.Deactivate:
                        if (targetGameObject != null)
                        {
                            targetGameObject.SetActive(false);
                        }
                        break;
                }
            }
        }


        private void OnTriggerEnter(Collider other)
        {
            DoActivateTrigger();
        }
    }
}

Detalles de la sangre en el suelo, mismo script ActivateTrigger,

Detalles de la salpicadura de sangre en el asiento en el respaldo,mismo script ActivateTrigger, esta vez e utilizado el programa gratuito GIMP 2.10.12 para pintar gráficos.

(poner imagen)


 








Abriendo gimp crear nuevo archivo con transparencia, usar la herramienta de aerografo para pintar unas salpicaduras de sangre y para que se vea la transparencia muy importante exportar en formato “PNG” este detalle es muy importante,

(poner imágenes)

luego pasar ese archivo a Unity y hacer un plano ponerle esa textura, hacer un prefabricado de esta y poner en el respaldo del asiento un plano sin la textura.

(poner imágenes)

Para la sangre en el suelo e puesto unos planos que hacen el cambio de charcos de sangre también utilizando ActivateTrigger, y para que no se vean les e quitado el Mesh, en las imágenes podéis ver señalado en círculos blancos los detalles mas importantes que intento explicar , creo que cuantas mas imágenes ponga mejor podrá entenderse lo que me gusta explicar.


(poner imagen)

La sangre en el suelo la e echo con los recursos gratuitos que ofrece Unity

Standard Assets Environment Water desde la versión 2018,2,1f1 de Unity que al final es la que estoy utilizando para hacer el videojuego ya que estoy mas echo a esta versión.

Otros detalles son utilizar desde Unity el efecto Trail Renderer, se lo aplico a unas esferas como hijos del cuerpo decapitado y de la cabeza decapitada para que agan un efecto de salpicadura.

 



(poner imagen)


Y los sonidos descargados desde http://www.sonidosmp3gratis.com/


jueves, 24 de junio de 2021

Unity 2020.3.12f1 ;

 

Bueno con mi pc a surgido un imprevisto, no me recarga la batería del portátil y trasteando e perdido días para seguir con mi videojuego, y encima no lo e resuelto, aunque nunca uso la batería pues siempre tengo conectado el

portátil a la corriente eléctrica, en fin ni reinstalando el windowos10 lo e conseguido, bueno tarda unos segundos mas en encenderse el equipo pero ya lo dejo así.


E aprovechado para descargar una versión mas reciente de Unity la nuevo Unity 2020.3.12f1

yo vengo usando la versión 2018.2.1f1



Y de momento cuelgo este video para ver unas diferencias del los dos unitys...en internet busque si hay una mejor que otra de momento e leído esto “Si quieres mantener toda tu producción en una versión específica de Unity para garantizar una estabilidad óptima, te recomendamos usar Unity 2018.4 LTS. “


La verdad hay diferencias si se cambia la versión, tienes que empezar desde cero con cosas que ya se sabían de versiones mas antiguas…..pero es necesario actualizarse y ver las novedades y adaptarse, si no llegaría un punto que lo que hacemos no serviría de lo antiguo que seria, ya se sabe, este mundo de los pc , informática, programas , hardware ….tiene constantes cambios a velocidades alucinantes

domingo, 20 de junio de 2021

COMO ESTOY HACIENDO UN VIDEOJUEGO EN UNITY Y BLENDER; MAS DE HOMBRE LOBO;

 


Detalles de mi videojuego con mi voz en of.

MagicMirror,; el recurso es free gratuito,De hombre lobo.;

 


Y mas detalles amedida que voy trabajando el videojuego, pongo otro video de youtube, en este video muestro y explicare lo mejor que pueda como e asignado el movimiento por teclas del personaje, me a resultado muy sencillo de hacer aprovechando los recursos de mis anteriores videojuegos inspirados en la ll guerra mundial.

 

 https://gamejolt.com/games/THE_END_WARLIKE_FEATS/609220

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CONTROLREPARTIDOR : MonoBehaviour {

    public Animator Anim;
    public float WalkSpeed;

    void Update () {

        if (Input.GetKey (KeyCode.E)) {
            Anim.SetBool ("CORRER", true);
            transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
        } else {
            Anim.SetBool ("CORRER", false);

            if (Input.GetKey (KeyCode.W)) {
                Anim.SetBool ("ANDA", true);
                transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
            } else {
                Anim.SetBool ("ANDA", false);

                if (Input.GetKey (KeyCode.S)) {
                    Anim.SetBool ("ATRAS", true);
                    transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                } else {
                    Anim.SetBool ("ATRAS", false);

                    if (Input.GetKey (KeyCode.A)) {

                        Anim.SetBool ("CORRER", true);
                        transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                    } else {
                        Anim.SetBool ("CORRER", false);

                        if (Input.GetKey (KeyCode.P)) {

                            Anim.SetBool ("BOMBA", true);
                            transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                        } else {
                            Anim.SetBool ("BOMBA", false);


                            if (Input.GetKey (KeyCode.O)) {

                                Anim.SetBool ("BOMBA", true);
                                transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                            } else {
                                Anim.SetBool ("BOMBA", false);

                                if (Input.GetKey (KeyCode.D)) {

                                    Anim.SetBool ("CORRER", true);
                                    transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                                } else {
                                    Anim.SetBool ("CORRER", false);


                                            if (Input.GetButton ("Fire1")) {
                                            
                                            Anim.SetBool ("DISPARANDO", true);
                                            transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                                        } else {
                                            Anim.SetBool ("DISPARANDO", false);


                                                if (Input.GetKey (KeyCode.M)) {
                                                Anim.SetBool ("LANZAR", true);
                                                transform.Translate (Vector3.forward * WalkSpeed * Time.deltaTime);
                                            } else {
                                                Anim.SetBool ("LANZAR", false);



                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

}






También desde el Asset store e descargado unos recursos de reflejos en espejos para que pueda simular lo mejor que sepa los reflejos de los cristales de las puertas y ventanas del entorno de un tren de metro subterráneo de cualquier ciudad.

MagicMirror, el recurso es free gratuito, y se consigue con facilidad hacer reflejos de superficies planas, solo hay que arrastrar los gráficos y el script que viene en sus carpetas.





Detalles de programación para provocar el movimiento y el sonido de un rugido cuando da el personaje un zarpazo….


using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class suenaalapretarbotonratonizquierdo : MonoBehaviour {



        private AudioSource sonido;
        public AudioClip elcamion;
        // Use this for initialization
        void Start () {
            sonido = GetComponent<AudioSource>();    
        }

        // Update is called once per frame
        void Update ()
        {

    
    

        //if (Input.GetButton ("Fire1")) {//////al soltar suena AL SOLTAR SUENA
        if (Input.GetButtonDown("Fire1")) {///////AL APRETAR AL INSTANTE SUENA


    //if( Input.GetKeyDown( KeyCode.E ) ) {////////////// sonido al apretar

                //if (Input.GetKey (KeyCode.S)) {
                sonido.clip = elcamion;
                sonido.Play ();

                if (Input.GetKey (KeyCode.S)) {
                    sonido.clip = elcamion;
                    sonido.Play ();
                    if (Input.GetKey (KeyCode.A)) {
                        sonido.clip = elcamion;
                        sonido.Play ();
                        if (Input.GetKey (KeyCode.D)) {




                            //if (Input.GetKeyDown.W(KeyCode.W)){
                            sonido.clip = elcamion;
                            sonido.Play ();
                        }
                    }
                }
            }
        }
    }

Tareas que e de realizar, trabajar los gráficos del vagon de metro, trabajar los personajes, que están sentados en el vagón del metro, crear mas animaciones, en este videojuego me resulta mas faciles hacer yo las animaciones con blender de los personajes que están sentados, y es sencillo poner el nombre de cada animación en particular y necesario para no confundirlas con otras ya echas,

También exportar esos personajes retocados con blender, pintados y animados en formato fbx para ser utilizados por Unity.

 https://unity.com/

 

 https://www.blender.org/

 

Los personajes no están modelados desde cero a partir de blender, supongo podría con muchísimo trabajo hacerlos y ponerles el esqueleto y conseguir un resultado aceptable, pero para eso utilizo el programa gratuito “ makehuman-community”, luego lo manipulo con blender.

podéis descargar desde internet.“ makehuman-community”

(poner enlace)

 http://www.makehumancommunity.org/content/downloads.html

And more details as I work on the video game, I put another YouTube video, in this video I will show and explain as best I can how I assigned the movement by character keys, it has been very easy for me to do taking advantage of the resources of my previous video games Inspired by World War II.


(put link) (put script) (explain something)


Also from the Asset store I have downloaded some resources of reflections in mirrors so that you can simulate the best you know the reflections of the glass of the doors and windows of the surroundings of an underground subway train in any city.

MagicMirror, the resource is free, and you can easily make reflections of flat surfaces, you just have to drag the graphics and the script that comes in their folders.


(put link or capture)


Programming details to provoke the movement and the sound of a roar when the character gives a claw….

. (put script and script detail)


Tasks that I must perform, work on the graphics of the subway car, work on the characters, who are sitting in the subway car, create more animations, in this video game it is easier for me to make the animations with blender of the characters that are seated , and it is easy to put the name of each animation in particular and necessary so as not to confuse them with others already made,

Also export those characters retouched with blender, painted and animated in fbx format to be used by Unity.

The characters are not modeled from scratch from blender, I suppose I could with a lot of work make them and put the skeleton on them and achieve an acceptable result, but for that I use the free program "makehuman-community", then I manipulate it with blender.

you can download from the internet. "makehuman-community"

(put link)

 

martes, 15 de junio de 2021

Videojuego terror De hombre lobo.;y animaciones;

 

Sigo trabajando el videojuego, este me parece una especie de cómic interactivo o película interactiva, yo soy una persona muy cine fila y a medida que voy ampliando y trabajando el videojuego veo que me salen…...la cosa esta de forma intuitiva de cambios de cámaras y de planos….cuanto mas me pongo mas me gusta Unity.



De hombre lobo.

Idea de videojuego de hombre lobo arrancando cabezas a tortazo limpio,,,seria para mayores de 18 años y gore sangre y animación en el vagón de un metro se le va la olla a un pavo se con vierte en lobo arranca cabezas y sale huyendo.

Nuevo proyecto de trabajo que estoy desarrollando y que procurare no alargarlo mucho…..espero no me lo plagien...de todas formas si me gusta igual estoy 2 o 3 meses trabajándolo….bueno hay lo dejo para que se te aga la boca agua esperando mi nuevo videojuego de terror de mayores de 18 años tope gore tope agresivo tope desagradable…...y adelanto un video del tema….que publico dentro de unos minutitos.....



Estoy practicando animar yo los personajes…..en un principio quería descargar animaciones ya echas y asignarlas, pero por increíble que me parezca ,creo me va a dar menos trabajo hacerlas yo, y aplicarlas al videojuego,,,,cosa que me enorgullece por supuesto.



 

Hoy unas pruebas de cambios de escenas para las transformaciones y una prueba de sonido incluida.

También unos scripts para los cambios de escenas….


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;/// <summary>
public class cambiodeescenadehombrelobotransformacionportiempo : MonoBehaviour {



        public Text contador1;
        public Text fin1;
        private float tiempo = 4f;
        // Use this for initialization
        void Start () {
            contador1.text = " " + tiempo;
            fin1.enabled = false;




        }

        // Update is called once per frame
        void Update ()
        {
            tiempo -= Time.deltaTime;
            contador1.text = " " + tiempo.ToString ("f0");
            if (tiempo <= 0) {
                contador1.text = "0";
                fin1.enabled = true;



                {




                    Destroy (gameObject, 0.0f); 

                    {

                        //Application.LoadLevel (1); ESTE ES EL ORIGINALLLLLLL

                        Application.LoadLevel (1);


                    }
                }
            }
        }

    }
-------------------------------------------------------------------------

-------------------------------------------------------------------------


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;/// <summary>
public class cambiodeescenadehombrelobosetransformaportiempoescena2 : MonoBehaviour {



        public Text contador1;
        public Text fin1;
        private float tiempo = 4f;
        // Use this for initialization
        void Start () {
            contador1.text = " " + tiempo;
            fin1.enabled = false;




        }

        // Update is called once per frame
        void Update ()
        {
            tiempo -= Time.deltaTime;
            contador1.text = " " + tiempo.ToString ("f0");
            if (tiempo <= 0) {
                contador1.text = "0";
                fin1.enabled = true;



                {




                    Destroy (gameObject, 0.0f); 

                    {

                        //Application.LoadLevel (1); ESTE ES EL ORIGINALLLLLLL

                        Application.LoadLevel (2);


                    }
                }
            }
        }

    }
----------------------------------------------------------------------------

----------------------------------------------------------------------------


using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;/// <summary>
public class escena3 : MonoBehaviour {


        public Text contador1;
        public Text fin1;
        private float tiempo = 4f;
        // Use this for initialization
        void Start () {
            contador1.text = " " + tiempo;
            fin1.enabled = false;




        }

        // Update is called once per frame
        void Update ()
        {
            tiempo -= Time.deltaTime;
            contador1.text = " " + tiempo.ToString ("f0");
            if (tiempo <= 0) {
                contador1.text = "0";
                fin1.enabled = true;



                {




                    Destroy (gameObject, 0.0f); 

                    {

                        //Application.LoadLevel (1); ESTE ES EL ORIGINALLLLLLL

                        Application.LoadLevel (3);


                    }
                }
            }
        }

    }


O F E R T A ;

 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

 https://itch.io/s/51430/itchio-summer-sale-2021

🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅