Quantcast
Channel: Latest Questions by SatisfactorySam
Browsing all 42 articles
Browse latest View live

How can I pull off a simple farming mechanic.

It would be very cool if I was able to press e I guess, and that would "plant the seed". I would have 5 or 6 models that would give the illusion of it growing over time. Once it is at the final stage I...

View Article



[Closed] How could I create a first-person controller from scratch?

I usually use the built-in FPS Controller from Unity, but I'd like to learn how to make one from scratch. Of course, I want it to be **very simple**. What are the steps to creating this? Can I do it in...

View Article

Is anyone able to fix my code?

Alright, I've got this code here: var speed : float = 5; var torsoRotation : float = 0; function Update(){ torsoRotation = transform.Rotate(0, Input.GetAxis("Mouse X") * speed, 0, Space.World);...

View Article

How do I clamp my rotation?

The player is in first-person, as humanoid model. To other players, when they look up, their torso rotates slightly vertically. It works the same way when I look down. This can also be observed in the...

View Article

Can I fake physics?

I've been following a series of tutorials on how to make a simple multiplayer FPS game. He shows us how to set up PUN (Photon Unity Network) multiplayer. Apparently, PUN is not good for syncing...

View Article


I need to add force based on the angle I'm looking at the object.

Here, I'm using Unity's add force script from the tutorial. ____________ using UnityEngine; using System.Collections; public class MoveBox : MonoBehaviour { public float pushForce = 1000; void...

View Article

How can I manipulate an object with the mouse?

In my test game, I have a camera that does not move. It only points at a table, with a potato on it. When I click and hold the potato, I want to be able to manipulate it. Just drag it around a little....

View Article

What are the first steps to creating a 2D tile-based game?

There are a few scripts from the asset store that seem pretty useful. The usual, though. Just creating tile based maps. The game "Broforce" has a really nice tile system. It seems awesome. What are the...

View Article


Can I emulate simple space-like gravity?

**Hey!** I have this script here, for a 2D side scrolling game. It is attached to my player object. ---------- using UnityEngine; using System.Collections; public class Movement : MonoBehaviour {...

View Article


Creating An "Attribute" Mechanic?

I am making a 2D, side-scrolling game. I want to attach a script to my player object. I want to create an array of "attributes" like sick, healthy, or strong for example. Each attribute would have a...

View Article

How Can I Create A Basic Developer Console?

I'm assuming it should be easy to create the visual console using Unity's GUI, but what about handling input? Mainly, I would like to instantiate a prefab with a command.

View Article

Creating a script to randomize events.

I've just started my very basic game. The player must complete a task within a certain amount of days. Once your turn is up, the day increases. Here is the script. using UnityEngine; using...

View Article

Making a Trait Mechanic?

I have always loved The Sims 3, and one of my favourite little things about that game is that you can give your character personality traits. For example, you could make them silly, evil and a...

View Article


Making an item class in Unity.

I'm best with javascript and I've learned to write classes something like this: function Item(name, description) { this.name = name; this.description = description; this.use = function use() { //Do...

View Article

Where can I learn to make a tile system?

I want a simple tile system to make a map, and then place and destroy tiles. What do I need to learn / know?

View Article


How could I create a book?

I have started creating a first-person game. I want to have a book that stays with the player, and he or she can open it whenever they feel like it. On the asset store and the internet all I can seem...

View Article

How to make a "Pick Up" script?

I would like to have a script that will be able to obviously pick up objects that are able to. More specifically, how can I pull off a paper note or letter. When you click 'e' on a object, a 'paper...

View Article


How could I use quads to make a book?

I've been told that quads are a good way to create a 3D book. The game I am creating is first-person, and I would like the player to be able to open a book whenever they like. They could flip pages,...

View Article

How could I write a script to flip pages of a book?

Using the help of the community on Unity Answers, I have created a 3D book. The game I am creating is in first-person, and the player is able to bring out their book with 'e'. Each page is made up of 2...

View Article

How will I draw a curve that represents the trajectory of a projectile?

Let me explain. I want to experiment in Unity, and I like the idea of having a little, three-dimensional side-scrolling environment to screw around in. Because everything will be viewed from the side,...

View Article
Browsing all 42 articles
Browse latest View live




Latest Images