|
| 18 Jun 2014 11:36 AM |
I'm making a top-down style of camera, which is dependent on the mouse so that it isnt entirely static and just sitting above the character. I'm getting some weird issues though, mainly involving Mouse.Hit and its position. When I move the mouse past a certain point on the screen, the mouse.Hit position will flicker and go somewhere else than where I am pointing the mouse entirely. Although, if I switch this feature off so that the camera is indeed static above the player, Mouse.Hit seems to work just fine.
I'm thinking this might have something to do with raycasting (since Mouse.Hit is a raycast essentially), but I couldn't seem to get any proper answer in Scripting Helpers. So I'm posting this here too, since I know most of you guys are a bit more experienced. If you want to see the weirdness "in action", go here: http://www.roblox.com/Alien-Swarm-place?id=161973443
~The herp lerped a derp~ |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 01:28 PM |
do CFrame.new(Mouse.Hit.p)
|
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 01:37 PM |
That's not the problem though... ._. Check the place out, it's really weird.
~The herp lerped a derp~ |
|
|
| Report Abuse |
|
|
| |
|
morash
|
  |
| Joined: 22 May 2010 |
| Total Posts: 5834 |
|
|
| 18 Jun 2014 02:50 PM |
| Do you not see the word "Master" in his name? Even if he is biased, he still knows something about scripting. |
|
|
| Report Abuse |
|
|
| |
|
|
| 18 Jun 2014 04:21 PM |
| The game doesnt even work... |
|
|
| Report Abuse |
|
|
|
| 18 Jun 2014 05:16 PM |
@Radioaktiivinen In what way does the game not work? All it is right now is a camera and movement demo. :P Also, if anyone could explain to me why this weirdness with Mouse.Hit is happening, that would be grrreeaatt.... yeaahh.... (+1 if you get the reference)
~The herp lerped a derp~ |
|
|
| Report Abuse |
|
|