playMaker

Author Topic: Are you Moving ?  (Read 1965 times)

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Are you Moving ?
« on: March 17, 2014, 12:37:22 PM »
Hello my precious PlayMaker - I Need a little help...

I need to know, is there a way to know when a character is in motion and to send event based on whether or not its moving or not ?

I am trying to use Virtual Joysticks, and for now I think this is the fastest way for to get things going... Though I am not sure.

Does play maker have a virtual Joystick ?

Anywho I just need to know how you can tell when a character/ object is in motion - this way I can send an event to play the correct animations ?

Thank you so much!!

PlayMaker is the BEST!!! :D
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Are you Moving ?
« Reply #1 on: March 17, 2014, 12:39:29 PM »
If you have a RigidBody on it you can use Get Velocity, any non-zero result denotes movement.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

NinjaX

  • Full Member
  • ***
  • Posts: 113
  • XCO is the ULTIMATE IOS Ninja!!
    • XCOGAMES
Re: Are you Moving ?
« Reply #2 on: March 17, 2014, 03:32:30 PM »
Thank you and I sorta understand, But if it's ok can you break it down for me :) ??

1.) I attach get velocity to my game object (I added a ridged body)

2.)  ?

3.)  ? I don't even know how many steps XD
XCO is the ULTIMATE IOS Ninja, Beware for he sees Everything and Nothing all at once!