of     1   

222304
Top 100 Poster
#183356427Thursday, February 11, 2016 2:15 AM GMT

Demo: http://www.roblox.com/games/12770108/Over-the-Shoulder-testing Many of you suggested I use raycast instead of projectile, so I implemented that, as well as changing the arm script updating from 0.1 seconds to 0.01 seconds. I like hearing feedback, but do keep in mind this game is modified after the Resident Evil 4 control scheme
DrHaximus
#183356516Thursday, February 11, 2016 2:17 AM GMT

"changing the arm script updating from 0.1 seconds to 0.01 seconds." you should really just use RenderStepped, it'll update as fast as possible you can't wait for 0.01 seconds
222304
Top 100 Poster
#183356609Thursday, February 11, 2016 2:18 AM GMT

I'm still new to lua, so RenderStepped is something I haven't picked up yet
DrHaximus
#183356718Thursday, February 11, 2016 2:20 AM GMT

even if you were able to wait for 0.01 seconds effectively it would be worse than ~0.03, you'd miss frames fun fact
pinballboy7
#183357004Thursday, February 11, 2016 2:24 AM GMT

http://wiki.roblox.com/index.php?title=API:Class/RunService/BindToRenderStep It's pretty easy, you just bind a function and it runs every frame.
222304
Top 100 Poster
#183357006Thursday, February 11, 2016 2:24 AM GMT

Well, point me to a good source to read up on it
pinballboy7
#183357198Thursday, February 11, 2016 2:27 AM GMT

Btw, I'd recommend you make the laser project just a few studs before fading out. It looks unrealistic and just sloppy when it doesn't align with the dot.
222304
Top 100 Poster
#183358732Thursday, February 11, 2016 2:48 AM GMT

Yeah, the reason that's a problem is because the laser comes from the tool itself, while the red dot is a reference point for your mouse
222304
Top 100 Poster
#183360540Thursday, February 11, 2016 3:15 AM GMT

Well, I added a bit of an offset to hopefully line it up better. It's not going to look perfect, but it'll look a lot better now.
pinballboy7
#183361723Thursday, February 11, 2016 3:40 AM GMT

What I mean is that the laser beam effect should only project a short distance, it looks better that way IMO.
222304
Top 100 Poster
#183361820Thursday, February 11, 2016 3:42 AM GMT

Yeah, I was thinking about that, but at the same time if you're targeting something far away, due to the fog it's hard enough to see the dot as is, and I still want to promote teamwork IE: if your friend is far away and aiming at something, you should be able to see what he's aiming at if you're close enough to it
pinballboy7
#183362118Thursday, February 11, 2016 3:48 AM GMT

You might want to draw the beam from the gun to the dot, rather than just wherever, so it aligns correctly.
222304
Top 100 Poster
#183362941Thursday, February 11, 2016 4:05 AM GMT

Easier said than done, really

    of     1