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 » Scripting Helpers
Home Search
 

Map Interaction, how should I approach this?

Previous Thread :: Next Thread 
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
17 Nov 2013 08:29 PM
If I were to implement map interaction, what is the best way to approach this?

Detection:
1. Region3
2. Raycast
3. Magnitude
4. ???

Event:
1. RunService.Heartbeat/Stepped
2. Mouse events that check
3. ???
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
17 Nov 2013 08:35 PM
It depends on what your trying to do.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
17 Nov 2013 08:39 PM
CoD-like(yes, I know people here hate it and think it's for scrubs).

You move near an interaction, it pops up a notification that may or may not tell you to do a certain action.
Report Abuse
JoshuaKempfert is not online. JoshuaKempfert
Joined: 16 Feb 2013
Total Posts: 2407
17 Nov 2013 08:46 PM
I think magnitude would be best.

I wouldn't do Heartbeat/Stepped because frame rate can slow down. I don't think mouse events would be very smart since if your character falls down or something they may not of used it. I would just use a CFrame changed event.
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
17 Nov 2013 08:49 PM
Actually, scratch magnitude, because I want the character to be facing what it is interacting with. I think I should go with raycast.
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
17 Nov 2013 08:51 PM
put a brick clos 2 it an then use a touch an touch ended
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
17 Nov 2013 08:54 PM
@madness

ew no
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
17 Nov 2013 08:55 PM
oh yus

"U BROKE THE TV U IDIOT!" - CeaselessSoul
Report Abuse
evolvedpikachu is not online. evolvedpikachu
Joined: 18 Aug 2010
Total Posts: 10696
17 Nov 2013 08:56 PM
ew no increase in part count
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
17 Nov 2013 08:57 PM
how else r u supos to do it?

"U BROKE THE TV U IDIOT!" - madness725
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
17 Nov 2013 09:00 PM
Use lookVector and raycast k?
Report Abuse
madness725 is not online. madness725
Joined: 19 Apr 2011
Total Posts: 2058
17 Nov 2013 09:03 PM
use my idea first k?

"U BROKE THE TV U IDIOT!" - madness725
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
17 Nov 2013 09:19 PM
Use mad's idea, then when they touch the brick, use RayCasting to check if they are facing the object.

local Ray = Ray.new(Character.Torso.CFrame,Player.Torso.CFrame.lookVector*20)
local Hit,EndPos = Workspace:FindPartsOnRay(Ray,nil)

Then check if hit is the object that makes the popup.

~ Like a Bass ~
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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