Quantcast
Channel: Latest Questions by f_rodrigues
Browsing latest articles
Browse All 18 View Live

Animation playing other object animation

I have a camera movement and when it reachs certain point it calls a function, in this function I want to play an animation in other object. The code: var Animator : GameObject; var clip :...

View Article



Contrains to position and rotation

I'm tryying to limiting the distance of two object to a min of 4 and a max of 60 and also the rotation.x of the first object to 40(in Eulers). But it doesn't seem to work. The position works just fine,...

View Article

The left-hand side of an assignment must be a variable, a property or an indexer

I'm trying to activate and deactivate two cameras. A first person camera and a third person camera. void ChangeCam(){ GameObject firstCam = GameObject.Find ("First Person Camera"); GameObject thirdCam...

View Article

NullReferenceException Using Animator

I'm trying to use the Animator to control my sprite animations. I have set up the animations, but when I place them in the animator, and the Animator in the Character, I get this error. It doesn't do...

View Article

Rigidbody2D AddForce for Jumping

I've a Jump method that uses the AddForce, but somehow my characters look like it's walking on the moon, it jumps and very slowly falls to the ground. I tried tweaking the Mass, LinearDrag, Gravity...

View Article


Input/Output Good Pratice

I'm trying to separate user inputs, and it's respective outputs in order to avoid lot's of if(Input...) in my scripts. In the Player gameObject I set a script called UserInput, with the regular...

View Article

Set Transparency to parent and child in C#

I have a parent class called 'wall' and in it I have some child classes(door, window, ...). I want to set the parent and it's child transparency to 50% if the player move past the door ( so it can see...

View Article

Matrix Multiplication, Standard Deviant and More usefull methods

I'm trying to create a Artificial Neural Network to make a evolving AI for a simple game. But I'm struggling with the math required by it. I made a neural net in Python, in around 100 lines, but when I...

View Article


Handling multiple lightmaps in a scene

I have a scene with 4 different light sources: - Daylight - Moonlight - Interior Light - Some interior items light (like a tv on) And I want to blend them depending on which ones are currently active,...

View Article

Browsing latest articles
Browse All 18 View Live




Latest Images