Quantcast
Channel: Latest Questions by dubstaphone
Browsing all 14 articles
Browse latest View live

How do I access a variable from another GameObject?

I have to objects: the coin, and the player. They each have a script attached to them. The player has a variable called "score". When you click the coin, I want it to add 1 to the score. However, the...

View Article



How do I make a physics object keep balance?

There's going to be a part in my game where some boxes are to be moved, but not knocked over. They need to be picked up by the player, but I want them to keep their balance and never fall. How can I...

View Article

How do I rotate my player with MouseOrbit?

In my game, you can switch between 3rd and 1st person viewpoints. In 3rd person mode, I have the default camera orbit script set up, and it works *almost* perfectly. The only issue is that my player...

View Article

Raycast shoots right through some objects

I made a melee combat system for my game. The code looks like this: var hit:RaycastHit; if(Physics.Raycast(transform.position,transform.forward,hit)) { if(hit.distance

View Article

How can I keep "notes" in sync with music?

I'm going to be making a rhythm game (no, I haven't started yet), and I have no idea where to start. I've decided to maybe answer some questions I have, so I ask you this: How do you sync notes up with...

View Article


How can I make a "fluid" hand system?

This is pretty vague, so I'll elaborate. I'm making a topdown game where the player has two detatched floatin hands, like Rayman. The thing is that I don't want them to instantly turn with the player....

View Article

Image may be NSFW.
Clik here to view.

How do I make AI objects not walk on top of each other?

In this screenshot, you can see that all of the AI objects are happily doing their thing. However... ...in this screenshot, they are on top of each other. This happens when they reach their...

View Article

How do I access a variable from another GameObject?

I have to objects: the coin, and the player. They each have a script attached to them. The player has a variable called "score". When you click the coin, I want it to add 1 to the score. However, the...

View Article


How do I make a physics object keep balance?

There's going to be a part in my game where some boxes are to be moved, but not knocked over. They need to be picked up by the player, but I want them to keep their balance and never fall. How can I...

View Article


How do I rotate my player with MouseOrbit?

In my game, you can switch between 3rd and 1st person viewpoints. In 3rd person mode, I have the default camera orbit script set up, and it works *almost* perfectly. The only issue is that my player...

View Article

Raycast shoots right through some objects

I made a melee combat system for my game. The code looks like this: var hit:RaycastHit; if(Physics.Raycast(transform.position,transform.forward,hit)) { if(hit.distance

View Article

How can I keep "notes" in sync with music?

I'm going to be making a rhythm game (no, I haven't started yet), and I have no idea where to start. I've decided to maybe answer some questions I have, so I ask you this: How do you sync notes up with...

View Article

How can I make a "fluid" hand system?

This is pretty vague, so I'll elaborate. I'm making a topdown game where the player has two detatched floatin hands, like Rayman. The thing is that I don't want them to instantly turn with the player....

View Article


Image may be NSFW.
Clik here to view.

How do I make AI objects not walk on top of each other?

In this screenshot, you can see that all of the AI objects are happily doing their thing. However... ...in this screenshot, they are on top of each other. This happens when they reach their...

View Article
Browsing all 14 articles
Browse latest View live




Latest Images