Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: NN2 on October 10, 2017, 12:35:47 PM

Title: Make guards have light censor
Post by: NN2 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!
Title: Re: Make guards have light censor
Post by: djaydino 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
Title: Re: Make guards have light censor
Post by: NN2 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.
Title: Re: Make guards have light censor
Post by: djaydino 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 :)
Title: Re: Make guards have light censor
Post by: NN2 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 :)
Title: Re: Make guards have light censor
Post by: djaydino 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.

(https://i.imgur.com/U1dk3Lz.gif)
Title: Re: Make guards have light censor
Post by: djaydino on November 10, 2017, 06:25:19 AM
Hi,
I have send you a pm
Title: Re: Make guards have light censor
Post by: LordHorusNL on November 11, 2017, 07:10:35 PM
Will these actions be shared when you are done? Looks good ;)
Title: Re: Make guards have light censor
Post by: djaydino 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 :)
Title: Re: Make guards have light censor
Post by: NN2 on November 12, 2017, 08:57:26 AM
Thank you so much for making the video!
I'm looking forward to see it   :D
Title: Re: Make guards have light censor
Post by: djaydino on December 04, 2017, 01:28:27 PM
Hi,
I have released the tutorial video :


I am still waiting for unity to approve my asset (playmaker Samples (http://u3d.as/YKH))
Title: Re: Make guards have light censor
Post by: NN2 on December 14, 2017, 02: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
Title: Re: Make guards have light censor
Post by: djaydino on December 15, 2017, 07: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 :)