16 posts in this topic

Im looking for an AI for a monster to be able to walk around and jump scare you when it finds you! Need help please 

Also i use C# and Unity

0

Share this post


Link to post
Share on other sites

Start simple, make a monster that exists (and does nothing).

Then gradually expand things in small steps:

- let it walk around randomly

- let it detect the player nearby

- let the player know the monster found him/her (or maybe not, if you want to surprise the player)

- pop up in front of the player (or whatever it should do to scare you).

2

Share this post


Link to post
Share on other sites
2 hours ago, Alberth said:

Start simple, make a monster that exists (and does nothing).

Then gradually expand things in small steps:

- let it walk around randomly

- let it detect the player nearby

- let the player know the monster found him/her (or maybe not, if you want to surprise the player)

- pop up in front of the player (or whatever it should do to scare you).

Yeh thats the thing you see im having trouble with the script to make it walk around randomly and making a jumpscare but i guess thats a whole other thing to work out

0

Share this post


Link to post
Share on other sites

Posted (edited)

41 minutes ago, KnowItAllGames said:

Yeh thats the thing you see im having trouble with the script to make it walk around randomly and making a jumpscare but i guess thats a whole other thing to work out

Walking is easy. If you use Unity then use a script to transform the location.

Next you should place waypoints on a level map, then by moving the monster using a script you target the waypoints. If it's a strait path then there will be no need for complex collision detection.

If you want more complex movement you need to read up on path finding. For your game the simple strait move will be enough.

Edited by Scouting Ninja
1

Share this post


Link to post
Share on other sites
38 minutes ago, Scouting Ninja said:

Walking is easy. If you use Unity then use a script to transform the location.

Next you should place waypoints on a level map, then by moving the monster using a script you target the waypoints. If it's a strait path then there will be no need for complex collision detection.

If you want more complex movement you need to read up on path finding. For your game the simple strait move will be enough.

You see its set in a forest and i would like my monster to just wander the forest aimlessly until it gets in range of the player(Its not a huge forest)

0

Share this post


Link to post
Share on other sites

Check the Unity NavMesh for this, remember that when you downloaded Unity it also downloaded the manual and scripting guide. All these things you are looking for is explain in there; keep them open at all times while working with Unity.

 

Now when it comes to navigation meshes Unity is limited, however it has all you will need for a game like yours.

1

Share this post


Link to post
Share on other sites

Do you have any code to show? Well, first thing did you do pathfinding? It will follow a path and you randomly generate a number for the path you want him to choose, if it see the player then you can make it automatically run to him or jump scare him or you can generate(again) a random number to tell if it has seen the player. If your code doesn't work I can fix it. 

1

Share this post


Link to post
Share on other sites
1 minute ago, Binkiklou said:

Do you have any code to show? Well, first thing did you do pathfinding? It will follow a path and you randomly generate a number for the path you want him to choose, if it see the player then you can make it automatically run to him or jump scare him or you can generate(again) a random number to tell if it has seen the player. If your code doesn't work I can fix it. 

I've actually just created the NavMesh but im not sure how i get my creature to roam the NavMesh do you think you could help?

also what kind of code would you like me to show you?

0

Share this post


Link to post
Share on other sites
Just now, KnowItAllGames said:

I've actually just created the NavMesh but im not sure how i get my creature to roam the NavMesh do you think you could help?

also what kind of code would you like me to show you?

Do you have code that you try to make it work? 

1

Share this post


Link to post
Share on other sites
1 minute ago, Binkiklou said:

Do you have code that you try to make it work? 

No honestly im clueless as how to make this work.

0

Share this post


Link to post
Share on other sites
2 minutes ago, KnowItAllGames said:

No honestly im clueless as how to make this work.

So you need help? Send me what you did and I'll try to finish it.

0

Share this post


Link to post
Share on other sites
6 minutes ago, Binkiklou said:

So you need help? Send me what you did and I'll try to finish it.

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

public class AIScript : MonoBehaviour {

	public float fpsTargetDistance;
	public float enemyLookDistance;
	public float attackDistance;
	public float enemyMovementSpeed;
	public float damping;
	public Transform fpsTarget;
	Rigidbody theRigidbody;
	Renderer myRender;

	// Use this for initialization
	void Start () {
		myRender = GetComponent<Renderer> ();
		theRigidbody = GetComponent<Rigidbody>();
	}
	
	// Update is called once per frame
	void FixedUpdate () {
		fpsTargetDistance = Vector3.Distance (fpsTarget.position, transform.position);
		if (fpsTargetDistance < enemyLookDistance) {
			myRender.material.color = Color.yellow;
			lookAtPlayer ();
			print ("Look at dah player");
		}
		if (fpsTargetDistance < attackDistance) {
			myRender.material.color = Color.red;
			attackPlease ();
			print ("Attack");
		} else {
			myRender.material.color = Color.blue;
		}
	}

	void lookAtPlayer(){
		Quaternion rotation = Quaternion.LookRotation (fpsTarget.position - transform.position);
		transform.rotation = Quaternion.Slerp (transform.rotation, rotation, Time.deltaTime * damping);
    }

	void attackPlease(){
		theRigidbody.AddForce (transform.forward * enemyMovementSpeed);

	}
}

This is my movement code for my creature and its all i have towards actually making it actually roam the NavMesh

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • By HugoLOI
      Hello everyone,
          For those of you who are into puzzles, pixel arts and family stories, here is a game we started with my little brother:   https://www.kickstarter.com/projects/755210943/kingscape-an-indie-game-with-odd-characters   Kingscape sets up a lonely character, the king's son, who invents off the wall adventures with numerous imaginary foes including but not limited to: cartoonish mad ducks, perverted zombies, bloodthirsty sales reps, explosive pigs. Your job is to defeat them all.   We're looking for positive criticism, feedback, toughts and support from people who enjoy the game pitch. Feel free to tell us what it evokes for you!     Cheers, Hugo Loi    
    • By kyuubi
      Hello everyone,
      We are looking for some talented artists to join our team in developing a new classic style adventure game.
      Open Positions
      Our team is currently looking for two artists, one 3D model artist and one 2D concept artist.
      2D Concept Artist
      Help us translate the concepts into visuals to improve our 3D model workflow
      3D Artist
      Help with creating 3D environments, buildings, props, dressing etc.
      3D Animator
      Someone that can bring our models to life and make them feel less static.
      What we are looking for
      We have a fun and talented team working on an ambitious project, but we need help in creating 3D assets. We need people with experience, comfortable with defining streamlined workflows and producing work in a quick pace.
      We also need someone to help bring our ideas to life in 2d concepts first to better improve our workflow in creating the 3D scenes.
      Although it is a hobbyist project, we take the project seriously and we are committed to finish the project, so we need people that can commit to the project with the goal to end it.
      The ideal candidate
      Is used to work for milestones and timelines Used to working in a collaborative approach within a team environment Has time available to be present on a regular basis, appear on slack and provide updates Can output work on a fast pace That understands what it means to work in a project The skills
      For 3D Modeler
      Skilled in creative 3D environments, including props and scene dressing Ideally that has worked with Unity before Bonus points if you have talent for character creation Bonus points if you have actually worked on a title until the end. Experience with Unity (double bonus) For 2D Concept Artist
      Experience with concept art Bonus point if you have created concepts for a game Bonus points if you have actually worked on a title until the end. Experience with Unity (double bonus) For 3D Animator
      Experience animating humanoids and animals Experience animating inanimate objects Experience animating environments (vegetation, ocean etc) Bonus point if you have created concepts for a game Bonus points if you have actually worked on a title until the end. Experience with Unity (double bonus) The Background
      The game takes place in a world almost submerged by water, where all the land that is left are small islands, where the remains of the human race try to survive after the cataclysm known as the Seven Tides.
      You play the story of Jon Riley, a young boy living in the Island of Chelonii, in the Eastern Kingdom of Khalandrie. After a visit from an old mysterious acquaintance, his grandfather, the only relative Jon has mysteriously disappears and Jon embarks on a quest to find what happened to him, while discovering the truth about himself, and the underlying mystery of the Island.
      For a full description of the game check out The Game page. (user: seventides pass: indie)
      The Mechanics
      The game will be mainly feed from the traditional mechanics of adventure games popular in the 90’s with games like The Broken Sword, Monkey Island, The Longest Journey, Full Throttle, The Dig etc.
      It also introduces some RPG elements that promote exploration in order to immerse the player deeper in the world. The main driver of the gameplay experience is going to be the story as it's traditional in this genre of games.
      The Art Style
      Currently the adopted art style is a flat shaded, low poly style. You can see some examples below and the full gallery here (user: seventides pass: indie). Please not all of the screens are work in progress as we are working in iterations to move faster.

      The Music
      We are lucky to have an amazing musician and talented producer in the team that is composing amazing musical scores for the game. If you want to hear some music samples get in touch!
      The Tools
      The game is being developed in Unity 5 in 3D low poly flat shade style. We are currently using the following main tools:
      Unity 5 - Game engine Dialog System - Dialog System for non linear interactive dialog databases Adventure Creator - State machine for the traditional adventure game workflows FMOD - Sound Engine Blender - 3D Modelling Sculptris - 3D Char sculpting Slack - Communication Trello - Task Management Our Trello Board!

      The Team
      We are a team mostly composed by professionals in our areas but new in applying our skills in game development.
      Game Designer/Project Lead - Background in Computer Science and working professionally as the technical director of a leading web development agency in Sydney. Duarte brings maturity in project management methodologies and technical leading. An obsessive adventure game player and very seasoned technologist, Duarte is the founder of the project. Lead Developer - A very experienced developer, Joao is the main man behind the implementation in the Unity engine. He will translate the specs and game design workflows into the engine. He is a professional web developer currently working in Vienna, Austria. Music Producer/Sound Design - A professional musician and music producer, Richard is a guru in enhancing the experience with sound and musical scores. He works professionally as a musician and music teacher and lives in London. 3D Artist/ Character Design - An aspiring musician and hobbyist game designer and 3D artist, Kevin is mainly responsible for character art. He currently lives in Puerto Rico. 3D Artist/ Environment Design - A hobbyist 3D artist, Joshua is mainly responsible for environment art, buildings, landscapes and props. He lives in London. If you are interested
      If you want to join the team, get in touch and I will supply the full game design document, our wiki containing character references, sound design cues etc and provide access to our Slack team chat.
      If you are interested contact me through private message.
      Looking forward to hear from you!
    • By Edoardo396
      Hi guys, I'm trying to make a crossword puzzle game for practice.
      Sorry but I've no idea on where to start.
      It should be basic game where the user must enter the word in the correct place and nothing else. (I am sure you know how to play crosswords!)
      I have to export it to Android and (if possible) to iOS.
       
      What engine would I want use?
      I thought to use Unity in order to develop it but I'm not very good with it (and, honestly, I don't like it that much)
      How is Unreal Engine 4 with Basic 2D Games like this one? If I could use UE4 it would be better because I know more C++ than C#. 
      I also thought about making this app with a "basic" IDE such as Android Studio (and) xCode but I would have to do the work twice and I want to avoid that if possible.
      Does anyone know if there is a library or something useful for making crossword games?
      Thank you very much for the answers and have a nice day!
      I apologize for the bad English but I'm not American/English.
      Edoardo
       
    • By OmicronStudio
       
       
      Deus Vult - Arena is an Action Adventure and TPS with Stealth elements and a combat system based on the tactical ability and quick reflexes of the player.
      Deys Vult - Arena is the realization of a dream born playing the great masterpieces of our childhood like 'Soul Reaver', 'Metal Gear Solid', 'Doom' and a little touch of 'The Legend Of Zelda'
      The beating heart of the DVA experience is the dualism of its gameplay. The Main Characters will be 2; Lulu and Minocar, trapped in an indissoluble link! They will need each others to proceed in the adventure. With Lulu we will face the phases of Exploration, Stealth, Puzzle. And transformed in Minocar we will take on the Arenas! Making our way through hordes of enemies with viciousness, tearing and absorbing their spirits to increase our power.
      We will move our first steps impersonating Lulu, a spirit with a dark past that doesnt have any memories or consciousness of who he is or why he is there. Then we will meet Minocar, a mysterious talking skull with an axe stuck in his cranium, to whom Lulu will speak as his master.
      The story of DVA starts in Lythra, a place devastated by a supernatural catacylsm and populated by hostile creatures and deadly traps! The players goal will be to escape Lythra, to do so he will need to explore every corner of his prison, following the clues that Minocar will give him and learning to make use of his immense power!
      Lythra is an infernal dimension twisted by a supernatural cataclysm, the player will discover what really happened through clues scattered around the map, and talking with the Pure Spirits and with Minocar during the course of the adventure.
      Deus Vult-Arena is a game with a persistent world, thoroughly walkable from one end to the other without interruptions, the map in its actual state has 6 dungeons linked with various shortcuts and secret passages between one area and the other, in every dungeon there are many arenas and secret zones, only accessible through solving of ambiental puzzles or looting specific items:
       
      Minocar and Lulu togheter will be able to acquire a physical body:
      The main goal of the combat system of Deus Vult - Arena is to increase our power through absorption of the enemies spirits! To do so, the player will have first of all to destroy the physical body of the enemy, making his spirit vulnerable and allowing us to break it and absorb the fragments of his spirit to become stronger:
      But destroying and absorbing wont be so easy, because the enemy spirits, once deprived of their body will immediately look for a way to reincarnate themself:
      The same fate will await the player if he is defeated while fighting in the form of Minocar We will lose Minocar's skull that will remain on the point of our death and we will have to retrieve it
      Once back in the form of Lulu we will be defensless against most enemies, but also invisible to them, however, right when we will lose our physical form the Guardian Eyes will descend from the sky to hunt us down The Eyes will be able to see Lulu and once spotted they will make him visible to all other enemies, putting us at risk of GameOver
      We will have many ways at our disposal to deny and trick the Guardian Eyes
      The level design of DVA makes so that there will be places that Minocar will be able to reach only in the form of Lulu. So we will have to use our wit to find the best way to access areas inaccessible to physical beings.
      Many riddles will require the combined use of both Lulu and Minocar:
      Combat System When we will be in our Minocar form we will have at our disposal alot of abilities, many of which will be unlocked with the increase of our power:
      In the form of Minocar we will be able to change the elemental state instantaneously at every time, each elemental state will change the preset of all of our moves, giving life to brutal and kickass combos At the peak of his power Minocar will have 4 elemental states Primigenial, Fervor, Gelu, Fulgur:
      Minocar will be able to summon various weapons depending on his state and the used attack, from a fearsome Spiked Mace to a devastating Arquebus
      In the game there will be NPCs called the Pure Spirits, they will be hidden in various locations of the game world and will spawn when we kill certain enemies There are two ways to interact with the Pure Spirits: talk to them, or absorb them! It will be possible to talk with the Pure Spirits only in the form of LuLu and if Minocar is not present, they will give insight about the history of Lythra and what happened to its inhabitants... Talking with a Pure Spirit will make us lose affinity with Minocar, if, otherwise, we will absorb them; we will gain affinity points that can be used to unlock new abilities!
       
      Do us many questions and tell us your impressions!
    • By INTwindwolf
      DESCRIPTION
      The team is in need of an assistant Art Team Director that will assist the Project Lead and Art Director in the development of the game. The position does require you to have knowledge of the Unity Game Engine, 3D asset creation software, and a desire for project management.
      The INT team is a large, international team, focused on the development of a core demo which will showcase RPG elements and core features for fundraising and investors. We are a friendly and passionate bunch and hope you will apply soon to be part of our team. Please review the job requirements and responsibilities below.

      Starboard Games LLC is looking for a highly professional, qualified, indie team developer to join our ambitious INT project.
       
      As the INT Assistant Art Team Director you will report directly to the Project Lead and Art Lead. In the occurrence of an emergency you would become the acting Art Lead. The position does require a knowledge of the Unity game engine. This is because we would like our Assistant Art Team Director to have a knowledge of the game engine, and the ability to create scenes to showcase assets.
      Furthermore, you would need to be able to create assets for the core demo in a 3D modeling suite. Many of our artists use blender, but if you have a commercial license for another program then that would be acceptable as well. You will also need to possess team management abilities. This means you will be reviewing 3D artist work, 3D artist samples and test submissions, 2D concepts, and possess an understanding of the ‘big picture’ for INT which will be shared with you by our store, lore, and Project Directors.
      Responsibilities:
      1. Report to Art and Project Lead.
      2. Act as Acting Art Lead in the event of an emergency.
      3. Ability to think creatively.
      4. Ability to communicate effectively and work with other team leads.
      5. Desire to see the project through to completion.
      REQUIREMENTS
      1. Knowledge of the Unity Game Engine.
      2. Experience using Unity.
      3. Experience using 3D asset creation suites.
      4. Experience managing a team or being part of a team environment.
      5. Must be able to take feedback constructively.
      6. Must be able to interpret and decipher maps and notes.
      7. Must be able to work from 2D art.
      8. Commitment to the Project and the ability to spend large chunks of time working towards the completion of the project.
      BENEFITS
      We offer revenue-sharing generated from crowd-funding to team members who maintain consistent communication on company projects and meet Starboard Games deadlines. Currently we are unable to offer wages or per-item payments. Your understanding is greatly appreciated.
      Thank you for your time! We look forward to hearing from you!
      TO APPLY
      Please send your CV/Resume, as well as (the link to) your portfolio to: JohnHR@int-game.net.
      Kindest regards,
      John Shen
      HR Lead
      Starboard Games LLC
  • Popular Now