Hide and Show objects cycle
So I'm building a system for displaying my modular character pieces. Meaning I want to cycle through each torso piece for example, by hiding the previous one and showing the new one, but I'm no...
View ArticleCan you help me with ''yield WaitForSeconds''?
Hello everyone! Can you help me? I was trying to add enemy AI and when enemy catches you you get jumpscared by it.I made it but after jumpscare i wanted to add "yield WaitForSeconds'' and...
View ArticleRotate camera when colliding
Hello, excuse my English, I'm from outside the US. I would like to know how to rotate my camera by C # as in Mario 3d land / Mario 3d world, I have a cube collider in the scene, that when the character...
View ArticleHiding and showing multiple objects
How do I write a script that can cycle through hiding and showing of five objects. I've tried using GameObject.Find(Torso1) to find my objects and then renderer.enabled to hide and show it, not sure if...
View ArticleWhy won't my cursor show up??
So i want to show my cursor when i open my inventory (with tab) and when i close the inventory the cursor disappears . And i wrote a script for that but it doesnt work... what did i do wrong? var...
View ArticleHow to make code for SCORM?
Hi everyone I´m new in making LMS courses using SCORM. I got this asset (https://www.assetstore.unity3d.com/en/#!/content/53523) SCORM API. It works fine, it generates the zip file and already tested...
View ArticleTrying to make a first person RPG
How do I make controller for the player to use? In first person? I want it to be able to walk around using WASD and look around using the mouse. ( I use Javascript btw )
View ArticlePropertyDrawer in JS only works when viewed in inspector
Hi, I've been using PropertyDrawers to make my scripts a little easier to use for a while now, but I've run into a problem. I have a script, written in UnityScript, which uses an array of...
View ArticleWhy won't my cursor show up??
Got a problem... Again! So i'm following this tutorial: https://www.youtube.com/watch?v=qrz_bQOh-tw&t=13s but at the end of the video his cursor shows up when you open your inventory. but mine...
View ArticleHealth for zombie game isn't working.
I have posted a question about this before and I hope someone can help. script 1 is attached to a FirstPersonCharacter for attacking the enemy, 2 is attached to an enemy for his AI, and 3 isfor the...
View ArticleJavaScript No AutoComplete?
Hello, Why there is no autoCompletion of java script in unity v5.5? is there any solution to fix this problem? if Unity removed it, I hope they add it again, the java much simpler than theothers, thank...
View ArticleMaking a List for Inventory System, Got an error in finding constructors and...
Hello everyone, I am currently following tutorials on making an Inventory system for my game. Right now I have a code for my Item (IS_ItemHandler) and an Inventory Management code (IS_Items). I made a...
View ArticleClosing GUI of another Script
I cant manage to close the GUI in Country.js from CanadaCore.js and since Country.js is a catch all GUI script for displaying country info and referencing CanadaCore.js would have to be repeated 130...
View ArticleCalling variables from another script in an array
Im trying to create a GUI element that displays relevant information for each object in the game The way i plan on doing this is with if statements for the state of the menu and than nested for loops...
View ArticleTrying to make a Parkour Platformer!
I know next to nothing about scripting and I'm trying to make a platform parkour game where you have to jump all the way from one platform to another, and I want it to have a save function when the...
View ArticleUnity Script not supported
Hi guys! I am learning to code using various tutorials. I am using Unity v 5.4.0f3, and monodevelop to edit scripts. For some reason, monodevelop doesnt pick up unity script - it does not autocomplete...
View ArticleIncrease jump speed colliding on a box ??
(I'm new). I need to jump high ( one shot) when i collide on a box. Someone can help me?
View ArticleIs this PlayerPrefs Scrpit correct ?
Hi Everyone, I Have a problem with that js script, i'm trying to save a variable in PlayerPrefs but it doesn't works... When i'm checking the resuld with a Debug.Log the variable become 0... Help !!...
View ArticleSemicolon expected before end of line
I'm trying to do a GetComponent (I've tried two ways) and it keeps expecting a semicolon before the parenthesis that defines the component I'm asking for. Method One: var healthScript:...
View ArticleAccessing other script variables error
hi, i'm making a game where you have to pick up Suitcases dispatched everywhere in the level, but when i'm trying to access to the variable witch add a score to the scoreboard when you've piked up one...
View Article