playMaker

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

NN2

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


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: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #1 on: October 10, 2017, 09: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: 20
Re: Make guards have light censor
« Reply #2 on: October 11, 2017, 08: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: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #3 on: October 11, 2017, 11: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 :
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: 20
Re: Make guards have light censor
« Reply #4 on: October 11, 2017, 12:16:50 PM »
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: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #5 on: November 08, 2017, 10: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: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #6 on: November 10, 2017, 08:25:19 AM »
Hi,
I have send you a pm

LordHorusNL

  • Beta Group
  • Full Member
  • *
  • Posts: 226
Re: Make guards have light censor
« Reply #7 on: November 11, 2017, 09:10:35 PM »
Will these actions be shared when you are done? Looks good ;)

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #8 on: November 12, 2017, 08: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: 20
Re: Make guards have light censor
« Reply #9 on: November 12, 2017, 10:57:26 AM »
Thank you so much for making the video!
I'm looking forward to see it   :D

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #10 on: December 04, 2017, 03:28:27 PM »
Hi,
I have released the tutorial video :


I am still waiting for unity to approve my asset (playmaker Samples)

NN2

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Make guards have light censor
« Reply #11 on: December 14, 2017, 04:33:59 PM »
Sorry for late response!!
But honestly, I was so happy when I watched your tutorial T_T
It is perfect and so clear!!
Thank you so much for your kindness. I will definitely dig into it!!
I hope you have a fantastic day <3

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Make guards have light censor
« Reply #12 on: December 15, 2017, 09:21:42 AM »
Hi.
Happy to help,
I am still waiting for the approval from the asset store to release my samples scenes on the store
More than 1 month now :( Probably very busy atm. as updated are having privilege, my update on my other asset took 2 weeks and submitted the same day.

This sample will be included in the asset :)