playMaker

Author Topic: Simplest way to move a ship left and right?  (Read 2654 times)

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Simplest way to move a ship left and right?
« on: October 04, 2014, 11:01:13 PM »
All I need is a ship to move left or right ( axis), ignoring all physics or other aspects. I have been looking at many tutorials and they all seem to complicate matters. Please explain it to me.

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

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Simplest way to move a ship left and right?
« Reply #2 on: October 05, 2014, 10:42:09 AM »
I watched that and it didn't work. I only need movement along the x axis. The components used in that video seem to break it. The game controller introduces all sorts of aspects I don't need.

Can someone explain how to implement a very simple "if this key is pressed move left and if this key is pressed move right". Just that.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Simplest way to move a ship left and right?
« Reply #3 on: October 05, 2014, 10:55:47 AM »
All you need is a Get Axis and Translate action.

Put the axis input into a variable, then use that variable in the Translate action. That's what the tutorial basically explains, we were using Forces there but its the same principle.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

ptrlo

  • Playmaker Newbie
  • *
  • Posts: 31
Re: Simplest way to move a ship left and right?
« Reply #4 on: October 05, 2014, 11:02:09 AM »
I followed that video step by step and my ship disappears. I turned gravity off in the rigidbody, I constrained Y in rotation and movement. And still it disappears.

Please help..

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Simplest way to move a ship left and right?
« Reply #5 on: October 05, 2014, 11:20:53 AM »
All you need is a Get Axis and Translate action.

Get Axis, store the variable, add a Translate action, use the variable in the X slot. Nothing else is necessary.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D