Linked Questions

0 votes
1 answer
285 views

I'm working on a tower defense game. I'm trying to make my gun object rotate and shoot the nearest instance of the "enemy" object. My problem here is my gun script rotates only to the main enemy ...
Omer's user avatar
  • 214
1 vote
1 answer
360 views

I'm able to Lerp the color of a UI panel within the Update method. However I'd like to trigger behavior a single time when needed. If I put it in a method and call it it only changes for a brief time ...
Pyreal's user avatar
  • 207
0 votes
1 answer
153 views

At the top of script: public Quaternion _lookRotation; In Update: ...
Daniel Lip's user avatar
  • 1,785
0 votes
1 answer
152 views

Given a top-down persepective and lets say I know the angle I want to look at, how do I make a gameobject look into that angle? I currently have code like this: ...
g_b's user avatar
  • 369
0 votes
1 answer
144 views

In my 2D platformer game, I find it very exhausting for the player if the camera follows the player all the time. So, I looked up for some tricks to make camera movement feel more natural. The first ...
padawan's user avatar
  • 253
0 votes
1 answer
114 views

A bit long post but both scripts are connected and working together. The speed is a parameter in Animator that moves between 0 and 1. At this speed I'm using first the SlowDown function to slow down ...
Daniel Lip's user avatar
  • 1,785
1 vote
1 answer
53 views

The first script is for the F pressing and calling the ScaleChange: ...
Daniel Lip's user avatar
  • 1,785

15 30 50 per page
1 2
3