Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: SammyJoeUK on December 11, 2016, 01:44:56 PM
-
Hi,
First off - I'd like to thank you guys for all the help I received last time with my last question. This is slightly related.
I want to avoid using "Every Frame" for this issue but I'm trying to add a constant "Set Velocity" to this cube object...
Currently I have just "Set Velocity" on the game object which works fine when there isn't a slope or an object blocking the path, however I want to be able to have the object constantly moving.
Please Help! :)
Thanks again! :D
-
Hi, maybe you can use Unity component Constant Force?
-
Is that not available as a Playmaker Action?
-
No, it is a component which you can add on game object in Inspector.
-
Thanks for that, is there anyway to change them using actions? so say pressing left puts a constant force on one axis and then pressing forward stops that force and puts a constant force on the other axis?
-
I think you can change axis values with Set Property.
-
looking through the Set Property after setting the Target Object as the gameobject i want to move - can't find it! :(
-
The target should be that component not game object, click and drag it to FSM it will give you options to Get/Set Property
-
ah HA! Thanks friend! :)
-
One last thing - is there any way to stop the object speeding up? I need it at a consistant pace rather than speeding up as the object moves along?
-
Oh yeah, then maybe it is not the solution, if you can’t use Set Velocity every frame, maybe worth a look at Move Rigidbody action found on Ecosystem. I am guessing here as I have not tested it.
-
has anybody checked ecosystem for SetVelocityConstantSpeed3d / SetVelocityConstantSpeed2d ??
more info here: http://hutonggames.com/playmakerforum/index.php?topic=10600.0
-
has anybody checked ecosystem for SetVelocityConstantSpeed3d / SetVelocityConstantSpeed2d ??
more info here: http://hutonggames.com/playmakerforum/index.php?topic=10600.0
;D
-
(http://oi63.tinypic.com/mvj7gx.jpg)
Getting this error with the script in my game now...?
-
EDIT: just saw dudexbls reply next page which is probably the cause, I'll leave my reply in case the updated action doesn't fix the issue.
IMO, this may be an error connected with ecosystem, at least it has popped up with other downloaded assets through ecosystem where the playmaker window suddenly doesn't show up even though its installled, which seems to be the case here? The workaround I'd do is to delete all playmaker related folders and reinstall a fresh, which should not tamper with your scene unless you saved it or its components in those folders.
-
@SammyJoeUK
Yeah sorry they are out of date - get the ones in the ecosystem or https://snipt.net/dudebxl/
-
Sorry I've kept quiet on this for so long but I'm stuck on adding this custom action to my Playmaker - i've got the script added into my unity playmaker folder... it's in it's own folder "Custom_Actions"
But I've got no idea where to go from there....
(http://oi65.tinypic.com/x59qmg.jpg)
Help?