Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Steven2PM

692
Posts
9
Topics
43
Followers
46
Following
A member registered Mar 21, 2021 · View creator page →

Creator of

Recent community posts

Phew 668 now!

(1 edit)

The gameplay video of that game has 666 views uh oh

Oh nooooo..

I hope so! what's the channel name?

Oh cool!

This is a video for you

Like that is actually insane, and you didn't do anything wrong, YouTube, why your deleting his channels don't destroy all of his channels! >:|

Alright wait... NOW YOUR CHANNEL THAT YOU SUPPOSED TO DO UNITY TUTORIALS IS DELETED TOO ??

Tu peux justement montrer le youtubeur si tu te souviens son pseudo ou sa vidéo ?

Oui je suis sur. comme que ce que je t'ai dit j'ai pas le logiciel et j'ai jamais fait de tutos sur UE4

Salut ca fait un petit moment ! et je crois que tu te confonds a une autre personne car j'ai jamais fait des tutos sur UE4, j'ai même pas le logiciel

Ohhh okay!

By the way are you french? because you seems to speak french very good

The ghost is very funny lookin lol. anyways yeah i enjoyed your game and thanks for commenting on my gameplay of your game!

(3 edits)

Yes i did a second part lol

Here is my gameplay! (sorry to advertise)

Hola buenos dias

Ohhhh i'm spanish too!

(2 edits)

Your welcome :) i'm going to possibly make a video of this game or one of your game tomorrow because why not.

Your so talented man, round of applause! 🙌

T'aurai du commenter sur mes jeux hehe

Comment j'ai pas checké ce compte avant T_T

It is so cool

Welcome back

Ah d'accord

Oui je vais bien et toi? comment ca se passe dans ton jeu?

Ah. je te dirai si j'ai trouvé que ce qu'il va pas.

(1 edit)

Ah ok je vois le genre. je te dirai si j'ai tout compris

Déjà tu veux que le joueur attaque comment, avec une epée ? si oui ca serait pas vraiment dur de le faire.

Alors par contre je vais essayer de chercher ca de comment vraiment faire ca car j'avais pas pensé avec la partie de "tuer l'ennemi"

Je suis heureux que ca marche pour toi :) et voici le script le l'ennemi : 

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using UnityEngine.AI;

public class Enemy : MonoBehaviour

{

    private NavMeshAgent Mob;

    public GameObject Player;

    public float MobDistanceRun = 4.0f;

    // Start is called before the first frame update

    void Start()

    {

        Mob = GetComponent<NavMeshAgent>();    

    }

    // Update is called once per frame

    void Update()

    {

        float distance = Vector3.Distance(transform.position, Player.transform.position);

        // Run towards player

        if (distance < MobDistanceRun)

        {

            Vector3 dirToPlayer = transform.position - Player.transform.position;

            Vector3 newPos = transform.position - dirToPlayer;

            Mob.SetDestination(newPos);

        }

        

    }

}

Mais aussi ta déjà un script pour que l'ennemi peut te tuer aussi ?

Peut-être

Peut-être essaye de corriger le Range? si le nombre est trop haut il pourra pas bouger.

D'accord!

Je suis content que ca a marcher ! derien ;)

Derien :)

Derien!

(1 edit)

J'avais fait un tuto de comment faire un joueur il y'a des mois, si tu veux le voir c'est ici : 

Ok!

Le script de mon joueur: 

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class PlayerMovement : MonoBehaviour

{

    public CharacterController controller;

    public float speed = 12f;

    public float gravity = -9.81f;

    public float jumpHeight = 3f;

    public Animator walk;

    public Transform groundCheck;

    public float groundDistance = 0f;

    public LayerMask groundMask;

    AudioSource audiosource;

    Vector3 velocity;

    bool isGrounded;

    // Update is called once per frame

    void Update()

    {  

        isGrounded = Physics.CheckSphere(groundCheck.position, groundDistance, groundMask);

        if(isGrounded && velocity.y < -20)

        {

            velocity.y = 0f;

        }

        float x = Input.GetAxis("Horizontal");

        float z = Input.GetAxis("Vertical");

        Vector3 move = transform.right * x + transform.forward * z;

        controller.Move(move * speed * Time.deltaTime);

        if (Input.GetButtonDown("Jump") && isGrounded)

        {

            velocity.y = Mathf.Sqrt(jumpHeight * -2f * gravity);

        }

        velocity.y += gravity * Time.deltaTime;

        controller.Move(velocity * Time.deltaTime);

    }

}


Et celui pour bouger la tête :

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class MouseLook : MonoBehaviour

{

    public float mouseSensitivity = 100f;

    public Transform playerBody;

    float xRotation = 0f;

    // Start is called before the first frame update

    void Start()

    {

        Cursor.visible = false;

        Cursor.lockState = CursorLockMode.Locked;

    }

    // Update is called once per frame

    void Update()

    {

        float mouseX = Input.GetAxis("Mouse X") * mouseSensitivity * Time.deltaTime;

        float mouseY = Input.GetAxis("Mouse Y") * mouseSensitivity * Time.deltaTime;

        xRotation -= mouseY;

        xRotation = Mathf.Clamp(xRotation, -90f, 90f);

        transform.localRotation = Quaternion.Euler(xRotation, 0f, 0f);

        playerBody.Rotate(Vector3.up * mouseX);

    }

}