playMaker

Author Topic: GUItexture touch as a button  (Read 2130 times)

shinodan

  • Full Member
  • ***
  • Posts: 171
    • View Profile
    • Shinozone
GUItexture touch as a button
« on: March 31, 2012, 01:24:58 PM »
I tried making my char a rigid-body and using the add force action when the gui button is touched but i cant actually get any signs of movement, although im happy im getting a touch response now.
can anyone help? pulling my hair out. :(

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12351
  • Official Playmaker Support
    • View Profile
Re: GUItexture touch as a button
« Reply #1 on: March 31, 2012, 03:04:04 PM »
Hi,

 Are you applying your force long enough? if you just apply a force once, you are likely not going to move your object at all.  try to make it so that you apply the force as long as the touch is active and stop when the user release the touch ( If that's not how it actually works already in your fsm).


 Bye,

 Jean

shinodan

  • Full Member
  • ***
  • Posts: 171
    • View Profile
    • Shinozone
Re: GUItexture touch as a button
« Reply #2 on: April 01, 2012, 08:47:35 AM »
How can i use a guitexture with controller simple move on it to move my char?

i have a state machine for touch down and touch release on the guitexture on touch down i have simple move 5 on the x axis, i have the char selected and the char has a motor and controller....