playMaker

Author Topic: Make guards have light censor  (Read 252 times)

NN2

  • Playmaker Newbie
  • *
  • Posts: 13
    • View Profile
Make guards have light censor
« on: October 10, 2017, 12:35:47 PM »
Hello, I am very new in script and want to make this function works by playmaker.

https://www.youtube.com/watch?v=rQG9aUWarwE

This video is something about field of view and I don't understand how it works since everything is in script :( Could you help me to make this function with playmaker? Or is it impossible to do it?

What I want to do is to make the guards have lights in front of them (like they holding torches) and they detect the player when it's inside of the torch light.

I am stuck here for quite long time so I really hope you could help me out.
Thank you for reading!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Make guards have light censor
« Reply #1 on: October 10, 2017, 06:04:46 PM »
Hi, i recently gave an answer on this thread that might help you also :
http://hutonggames.com/playmakerforum/index.php?topic=15894.0

NN2

  • Playmaker Newbie
  • *
  • Posts: 13
    • View Profile
Re: Make guards have light censor
« Reply #2 on: October 11, 2017, 05:21:46 AM »
Hi, i recently gave an answer on this thread that might help you also :
http://hutonggames.com/playmakerforum/index.php?topic=15894.0

Thanks for the link! But how did you make the visible circle around the object? I'm not really sure if it's me who can't find it from your video :( what I want to get are the visible circle and the view angle from the video that I have posted.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Make guards have light censor
« Reply #3 on: October 11, 2017, 08:47:08 AM »
Hi,
Sorry i did not watch the video as i was on mobile.
I am traveling at the moment, but i am at a wifi hot spot now.

Maybe this series can get you into the right direction :
https://www.youtube.com/watch?v=EFo7vd-L9ug&list=PLCFBBA6A7A7BB34F8
It does not visualize the light tho.

I am downloading the videos from your link (it will take a while, very slow connecton) and i will check them out.

I will be back home next week, i can then try to get it to work with playmaker.
Meanwhile you can try yourself of course :)

NN2

  • Playmaker Newbie
  • *
  • Posts: 13
    • View Profile
Re: Make guards have light censor
« Reply #4 on: October 11, 2017, 09:16:50 AM »
Ah thanks for trying to help me out!
and also thanks for the tutorial videos! I've seed this videos before and they have helped me a lot :)

Since it is inconvenient for you to see the videos, I brought an image to explain what I want to achieve.
So the image I've attached is what I want to make with playmaker.
This is an free asset named '2D Dynamic Lights and Shadows' (the link:https://www.assetstore.unity3d.com/kr/#!/content/24083)

and what I want to understand are how to get the points the light hits, color specific areas, and the changes of radians and segments of the light.

Sorry if I'm bothering you. I am just working on this for quite long time and frustrated because I still couldn't find the answer.. :'(

If you cannot answer me right now. It's ok!
Thank you for reading all this :)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Make guards have light censor
« Reply #5 on: November 08, 2017, 08:26:27 AM »
Hi,
Just to let you know i'm working on it.

So far i got everything on the 1st video (included a script to see the radius and angle in edit mode) , except instead of using a draw line i changed the color from the targets when in range.
Don't mind the light flickering, its because of the low res recording for the gif file.


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Make guards have light censor
« Reply #6 on: November 10, 2017, 06:25:19 AM »
Hi,
I have send you a pm

LordHorusNL

  • Junior Playmaker
  • **
  • Posts: 78
    • View Profile
Re: Make guards have light censor
« Reply #7 on: November 11, 2017, 07:10:35 PM »
Will these actions be shared when you are done? Looks good ;)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 2288
    • View Profile
    • jinxtergames
Re: Make guards have light censor
« Reply #8 on: November 12, 2017, 06:04:02 AM »
Hi,
All Actions are available for this, most are standard actions.
1 or 2 are from the Ecosystem.

I will make a tutorial video soon :)

NN2

  • Playmaker Newbie
  • *
  • Posts: 13
    • View Profile
Re: Make guards have light censor
« Reply #9 on: November 12, 2017, 08:57:26 AM »
Thank you so much for making the video!
I'm looking forward to see it   :D