playMaker

Author Topic: Doom 3 like interactive screens  (Read 1767 times)

ivam

  • Playmaker Newbie
  • *
  • Posts: 34
Doom 3 like interactive screens
« on: September 08, 2014, 12:25:37 PM »
Heya guys, i was curious if anyone had an idea or could point me into the right direction on how to implement computer screens like in doom 3.

as a reminder, when mouse over on the doom 3 screens the crosshair turns into a mouse cursor on the actual screen an it allows you to click on that said screen.

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Doom 3 like interactive screens
« Reply #1 on: September 08, 2014, 01:01:56 PM »
Hi,
try System Events > MOUSE Enter/Over/Exit
or
Mouse Pick Event action if you need a distance.


ivam

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Doom 3 like interactive screens
« Reply #2 on: September 08, 2014, 04:13:58 PM »
ah i see, how would i go about with creating the cursor on the screen(probably raycast, create on location) and confine it to the screen space and all of that ?

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Doom 3 like interactive screens
« Reply #3 on: September 08, 2014, 04:36:58 PM »
Create a fsm on your "screen gameObject" with Mouse Enter Event in one state and connect it to another state. In that second state use Set Cursor action.
Then add Mouse exit event to return to first state for example.

later..
To avoid using raycast for distance measures, could add a isTrigger Collider, so when Player enters the trigger zone, that "screen" fsm starts to react.

Hope this makes sence:)
« Last Edit: September 08, 2014, 04:39:24 PM by 600 »