playMaker

Author Topic: How to move an object on a local axe [SOLVED]  (Read 2945 times)

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
How to move an object on a local axe [SOLVED]
« 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 :)
« Last Edit: January 23, 2014, 01:38:54 PM by vonpopov »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to move an object on a local axe
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: How to move an object on a local axe
« Reply #2 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.



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


« Last Edit: January 21, 2014, 05:54:13 PM by vonpopov »

redikann

  • Full Member
  • ***
  • Posts: 174
Re: How to move an object on a local axe
« Reply #3 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.

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: How to move an object on a local axe
« Reply #4 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.
« Last Edit: January 22, 2014, 07:31:51 AM by vonpopov »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: How to move an object on a local axe
« Reply #6 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,

vonpopov

  • Junior Playmaker
  • **
  • Posts: 98
Re: How to move an object on a local axe
« Reply #7 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
« Last Edit: January 22, 2014, 11:51:14 AM by vonpopov »