generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Mouse.Hit and camera position behaving weirdly...

Previous Thread :: Next Thread 
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
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
AMasterProgrammer is not online. AMasterProgrammer
Joined: 02 Apr 2013
Total Posts: 1608
18 Jun 2014 01:28 PM
do CFrame.new(Mouse.Hit.p)
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
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
AMasterProgrammer is not online. AMasterProgrammer
Joined: 02 Apr 2013
Total Posts: 1608
18 Jun 2014 02:08 PM
Don't question me... ._.
Report Abuse
morash is not online. 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
AMasterProgrammer is not online. AMasterProgrammer
Joined: 02 Apr 2013
Total Posts: 1608
18 Jun 2014 04:19 PM
@morash

Yeah What he Said
Report Abuse
Radioaktiivinen is not online. Radioaktiivinen
Joined: 25 Apr 2009
Total Posts: 18629
18 Jun 2014 04:21 PM
The game doesnt even work...
Report Abuse
filiptibell is not online. filiptibell
Joined: 10 Mar 2013
Total Posts: 2362
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image