-
Posts
14 -
Joined
-
Last visited
Awards
This user doesn't have any awards
About DiscoLights2001
- Birthday Jan 01, 2001
Profile Information
-
Gender
Male
System
-
CPU
I5-4590k
-
GPU
Gtx970
-
Display(s)
HP 2010i + HP2011x + a random monitor my mother had
-
Keyboard
Dell
-
Mouse
Logitech G600
-
Sound
EX-05s
-
Operating System
windows 10
Recent Profile Visitors
620 profile views
DiscoLights2001's Achievements
-
Unity Engine - Mouse cursor locks when any Key is pressed.
DiscoLights2001 replied to DiscoLights2001's topic in Programming
Thanks to all those that offered help (also I'm glad someone saw the pun too). I have now discovered the problem. For those who are interested in the issue: As it turns out the problem is with me, and not with the program (I'm am not very observant basically). The issue is that I am on a laptop (I'm not normally) and this laptop for some reason, turns of the touch pad when ever a key is pressed. I never noticed it before. Thanks for your patients and help.- 5 replies
-
- unity engine
- unity
- (and 4 more)
-
My problem is that in my unity game when you press a key the mouse will freeze. I want to use the mouse input and while a key is being held down (imagine something like an FPS camera). I think that issue is that the mouse is being locked when the key is pressed, but I can't work out how to stop it from happening. This happens across projects, so I think that it isn't an issue with my code/ something I've done, but just in case here is some code that I think is relevant: public class MouseMovement : MonoBehaviour { public GameObject myObject; public float speed; void Update () { myObject.transform.Rotate(Input.GetAxis("Mouse Y") * Time.deltaTime * speed, 0.0f, 0.0f); /// handle other axis in same way. } } and : public class KeybourdMovement : MonoBehaviour { public GameObject myObject; public float speed; void Update () { if (Input.anyKey) { if (Input.GetKey(KeyCode.W)) { myObject.transform.Translate(Vector3.forward * Time.deltaTime * speed); } //handle the ASD in the same way } } As a side note I'm using Unity 5.5.0f3. So if somebody could point me in the right direction, it would would very helpful.
- 5 replies
-
- unity engine
- unity
- (and 4 more)
-
What programming language should i learn?
DiscoLights2001 replied to DocBrown's topic in Programming
I started when i was 12 learning c#, although it can be frustrating a first I think it's a good language to learn first because it teaches you Object oriented programming right from the start (unlike c). It also shares a lot of similarities with c++ and Java, so it's good jumping platform. But any language is good to learn because you need to learn how to program not a language. -
Weird black/white flickering horizontal lines on screen.
DiscoLights2001 replied to oArctic's topic in Troubleshooting
I have a friend who's had a similar problem in the past. When he took it to a repair shop, they said that one of the components wasn't soldered properly.This probably won't help as you have tried it on different monitors but fun story anyway -
Hi, I'm building a project in java and I need to import an image file inside the res folder, but I've tried to add it to the build path but i still can't access. Although it looks like it's added as you can see from the pictures. This is where the code throws an exception: class someclass{ private static BufferedImage image = ImageReader.readToBufferedImage("/textures/letters.png"); /* .... */ } public class ImageReader{ public static BufferedImage readToBufferedImage(String path){ BufferedImage image; try{ image = ImageIO.read(new File(path)); return image; } catch (IOException e) { e.printStackTrace(); } } } The exception that gets thrown by the image reader is: javax.imageio.IIOException: Can't read input file! at javax.imageio.ImageIO.read(Unknown Source) Have I missed something. Thanks in advance.
-
How to tell if a directx11 application is using the gpu
DiscoLights2001 replied to DiscoLights2001's topic in Programming
Thanks that helped -
So... I'm writing DirextX11 application and I can't tell if it is utilizing my GPU because it seems to have very little impact on the GPUs usage, so I was Just wondering if there was a way to check which display adapter it's using. Sorry if it's a stupid question but I'm quite new to DirectX and if someone could point me in the direction of something that could help that would be great. (By the way i'm using a GTX 970 so it my should GPU does support it).
-
@wolfgang I'm liking wolf and spice, but the weird thing is i've started calling it cinomin wolf for no real reason
-
That cleared things up sort of
-
it's still pretty cool either way
-
@TheProfosist ok then
-
omg thats so cool, I really wish I was good with foreign languages
-
Im watching it because of wolfgang right now
-
Im probably being stupid but i don't see the link between the peanuts and colours
-
I noticed at the end of Wolf and spice there is a lyric that says I danced with peanut butterflies, does anybody else find this weird or is there some kind of like of didn't get. @wolfgang