playMaker

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - lioncirth

Pages: 1 [2]
16
iOS Help / 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

17
iOS Help / What am I doing wrong - iOS controls[SOLVED]
« on: March 16, 2013, 11:28:56 AM »
Hi all

I am trying to get some simple iOS touch controls done but not sure where I am going wrong...

I have watched the iOS videos and looked at Jean's sample that was in this forum but dont fully understand it.

At the moment in my scene I have;

* ground
* GUI Texture Buttons
* Cube (Player)

On the Gui Left Texture button I have the following FSM

Start -> Set Up State - This has the event Reset Left Click which sets the GUI texture for the button

Left Touch State - This has the Touch Gui Event - the send event is set as move_left (which is a global event). The transition on this state is "move_left"

This goes to Send Click State - which sends event move_left to my cube.

Now on the cube I have;

Start - Listener - this has no actions attached but has the transition move_left.

This goes to Move Left state - this has the itween move (which moves my cube 1 space left) - it then has another Set Gui Texture (so it looks like it was pressed)

This then has a Reset Left Click transition.

This then goes to Reset Left click state - which sends the event "Reset Left Click" through to the left Gui object

This should repeat every time the user clicks the button.

I hope this is easy to following...I am expecting it to be a simple fix that I am completely missing because im sooo new :)

Thanks for any support received.

18
General Discussion / Hi - Multiple FSM's
« on: March 15, 2013, 05:27:05 AM »
Hi Guys

I have recently purchased Playmaker and being a non coder that tried to get into learning C# - until I found Playmaker that is :)

I am currently going through the tutorials and have a few thoughts going through my head about my current project :)

I am working out the iOS controls, I think I have it sorted (in my head anyway!)

My main question, is it okay to have more than 1 FSM on an object?

On the character it has the movement FSM which receives events from the touch manager. I then intend to add another FSM which will control the characters health.

Unless I set up a listener state, which listens for movement and damage?  - still pretty new to this :)

Thanks

Pages: 1 [2]