playMaker

Author Topic: iOD Platformer controls  (Read 3217 times)

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
iOD Platformer controls
« on: April 24, 2013, 03:33:15 PM »
Hi

I was wondering if someone could help with my controller for my platformer game.

I have the buttons as GUI and these are set to react on touch and mouse click.

On the GUI texture I have;

State: Input Watcher
Actions:

- Set GUI Texture
- Touch GUI Event

This goes through to

State: Input On
Actions:

- Set Gui Texture
- Touch Event
_ Controller Simple Move (this then moves my character object)

This works fine at moving my character but the problem is because the character move is not on my character the rigid body is ignored and the player doesnt fall off plat forms - it floats

I have tried adding the controller to the player and then using send event on the texture but this still doenst seem to work. When I do this, when I click the GUI texture, the character moves but doesnt stop....

Any help would be great

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iOD Platformer controls
« Reply #1 on: May 09, 2013, 02:49:57 AM »
Hi,

 it may be because you don't have any logic to stop the player? you need to watch for touch down, and also for touch up ( and cancelled) as a result to know when the touch is done.

bye,

 Jean

lioncirth

  • Junior Playmaker
  • **
  • Posts: 74
Re: iOD Platformer controls
« Reply #2 on: May 13, 2013, 07:50:11 AM »
Thanks Jean

I ended up having someone code it in c# but I am thinking of trying to port it back into PlayMaker as the rest of my game is done via that...

Will possibly look for someone with Playmaker experience and pay them to do it, if I cannot figure it out

Thanks