Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: vonpopov on January 21, 2014, 05:14:18 PM

Title: How to move an object on a local axe [SOLVED]
Post by: vonpopov on January 21, 2014, 05:14:18 PM
Hi,

I am working on my controller setup. and i'm stuck.

I would like to move an object on a certain local axe ( X ) by pressing a button (Fire 1).

I had try something like "get button" , store the variable, but i failed to connect it to a potential controller simple move.

I should have miss something easy, please help :)
Title: Re: How to move an object on a local axe
Post by: Lane on January 21, 2014, 05:18:22 PM
Look at the Translate or Add Force action and choose Z axis in Self Space to move it forward.

Get button will return an Input result from the Input Manager for the named input you typed in. You could multiply that result or use it as a bool to enter another state that applies the movement.
Title: Re: How to move an object on a local axe
Post by: vonpopov on January 21, 2014, 05:47:00 PM
Look at the Translate or Add Force action and choose Z axis in Self Space to move it forward.

Get button will return an Input result from the Input Manager for the named input you typed in. You could multiply that result or use it as a bool to enter another state that applies the movement.

Thanks you for you help.

But unfortunatly, I'm still stuck.

1/ I added a GET BUTTON and stored the result as a "BOOL" variable

2/ Following your advice i tryed a "TRANSLATE" , but i cannot connect it to a "BOOL" variable.

(http://oi44.tinypic.com/xku0b9.jpg)

In fact i have no idea how to connect the "GET BUTTON" , to another action. (I assume, it aks Vector3 action)


Title: Re: How to move an object on a local axe
Post by: redikann on January 21, 2014, 06:19:35 PM
Don't take this the wrong way, but watching the first couple tutorial videos might help you more than being handed the solution to this problem. Grasping the concept of Playmaker, setting up FSMs and dividing state logic will come in time but you need to understand the basics of it all. The community is responsive and a great part of owning the product. But please check out the starter vids if you haven't yet.
Title: Re: How to move an object on a local axe
Post by: vonpopov on January 22, 2014, 07:11:57 AM
Don't take this the wrong way, but watching the first couple tutorial videos might help you more than being handed the solution to this problem. Grasping the concept of Playmaker, setting up FSMs and dividing state logic will come in time but you need to understand the basics of it all. The community is responsive and a great part of owning the product. But please check out the starter vids if you haven't yet.


mmm, fact is :
I already did the whole tutorial serie on the website, i own and use Playmaker, since 3 months.

This is my first intervention here, but i am not new. Truth is i am graphist, not programmer, and that's why, i have to be stuck very offen :)

But maybe i have mistaken a tutorial, but i seen none, explicating the "get button". :s If you can point me it out.
Title: Re: How to move an object on a local axe
Post by: Lane on January 22, 2014, 07:39:33 AM
Try this

http://hutonggames.com/playmakerforum/index.php?topic=6097.msg29514#msg29514
Title: Re: How to move an object on a local axe
Post by: vonpopov on January 22, 2014, 07:57:49 AM
Try this

http://hutonggames.com/playmakerforum/index.php?topic=6097.msg29514#msg29514

Thanks you. i am going to read this, and try some other tutorial, then
I ll come back here later,
Title: Re: How to move an object on a local axe
Post by: vonpopov on January 22, 2014, 11:43:24 AM
Try this

http://hutonggames.com/playmakerforum/index.php?topic=6097.msg29514#msg29514


Wonderfull, that was what i was looking for (exepted i needed in "self") it works !
This is usefull for the first test, now i need to go deeper into forces.

Thanks  ;D