playMaker

Author Topic: Setting up a 2D controller  (Read 3144 times)

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
Setting up a 2D controller
« on: March 14, 2012, 01:43:52 AM »
Hello everyone! (first post! Yay!)

I'm having some issues. I wanted to setup controls for a 2D person.
Basically, I created 2 states: Up Input and Up Move

Up Input has the "Get Key" action, which has the key "Up".
I added a transition to it "FINISHED". Then connected it to Up Move.

The Up Move has Controller Move with its only movement is 1Y (basically 1 for the y input).

Whenever I test it, it skips the first state (Up Input) and starts moving... Any help?

(if this is resolved it'll help for down, left, and right)

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Setting up a 2D controller
« Reply #1 on: March 14, 2012, 09:51:25 AM »
Not sure what's going on ther without seeing a screenshot...

But have you tried the Axis Event action?

https://hutonggames.fogbugz.com/default.asp?W681

This seems like it would be a better fit for your problem...

In general, actions that use Unity's Input system (axis) are easier to use and more powerful than the lower level get key etc. actions.

Avascar

  • Playmaker Newbie
  • *
  • Posts: 45
Re: Setting up a 2D controller
« Reply #2 on: March 14, 2012, 07:32:28 PM »
It's a android game. And I setup some gui textures. I'm planning to setup 4 graphs.