playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
how to make a advanced Playmaker script to meet a specific need?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: how to make a advanced Playmaker script to meet a specific need? (Read 1509 times)
DJ7705
Playmaker Newbie
Posts: 4
how to make a advanced Playmaker script to meet a specific need?
«
on:
May 17, 2018, 09:53:22 PM »
Hi I'm a Newbie to Playmaker but I know my way around Unity pretty well.
I'm trying to make a Playmaker script that causes a specific Turret in my scene to follow & track the mouse within a certain radius and to fire. But I'm having nothing but issues! I've tried looking online for a tutorial that could explain well and/or show how to accomplish that but haven't found any relevant tutorials towards this end. Can someone please either provide some sage-like advice or some links where I can find the info I need to accomplish this? Thank you in advance
Logged
tcmeric
Beta Group
Hero Member
Posts: 768
Re: how to make a advanced Playmaker script to meet a specific need?
«
Reply #1 on:
May 18, 2018, 01:54:09 AM »
Its hard to suggest without knowing exactly where you are.
However, I would start with using the "Smooth Look At Direction" action, as this will allow you to look at a vector or game object. I think it accepts a min/max value. So if over a value, you can stop moving it.
The vector you want to use is your mouse position. You may need to learn how to get screen to world space for this. (Mouse lives in screen space, but your gameobject lives in world space). Tutorial here:
//www.youtube.com/watch?v=OnURL4nA1jk
Logged
DJ7705
Playmaker Newbie
Posts: 4
Re: how to make a advanced Playmaker script to meet a specific need?
«
Reply #2 on:
May 18, 2018, 05:36:57 PM »
Thank you so much tcmeric, I'll check that tutorial out hopefully it will help me Accomplish my goals!
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: how to make a advanced Playmaker script to meet a specific need?
«
Reply #3 on:
May 22, 2018, 05:09:38 AM »
Hi,
yes, try to study existing actions and work from there.
then make sure you tackle one issue at a time and post here or new threads ( better)
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
how to make a advanced Playmaker script to meet a specific need?