playMaker

Author Topic: Setting up a 2D cannon system via playmaker  (Read 4198 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Setting up a 2D cannon system via playmaker
« on: March 27, 2015, 10:28:13 PM »
So I create a trigger with two additional fsms, and not only it wont set the player as a child, but it wont enable the trigger on the button that adds force.

How can this problem be solved?

https://db.tt/NDTuNqRZ

https://db.tt/z9H00ff4

https://db.tt/0XD02dGg

https://db.tt/iQTvRpPa

https://db.tt/8uUyq96i
« Last Edit: March 27, 2015, 10:32:58 PM by coffeeANDsoda »

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Setting up a 2D cannon system via playmaker
« Reply #1 on: March 31, 2015, 07:14:17 PM »
Plus, when I set up another FSM to trigger add force. I did arrange a few states where with each of them I have a set property action to constrain the players axis on it's rigidbody. But unfortunately, it only freezes it's Z'd position. And after a wait, it adds a continuous force only setting the player up into the air forever. 

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Setting up a 2D cannon system via playmaker
« Reply #2 on: April 02, 2015, 06:43:59 PM »
Anyone?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Setting up a 2D cannon system via playmaker
« Reply #3 on: April 03, 2015, 02:24:30 AM »
Hi,

 I tried to make sense of this, but I don't see where to start.

 typically, you should cut down your problem, there are too many things in there. Add force, triggers and constraints are three different features, so let's pick one, isolate it, see if you can work with it and where you hit trouble, we'll be able to help.

Bye,

 Jean

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Setting up a 2D cannon system via playmaker
« Reply #4 on: April 03, 2015, 02:05:34 PM »
I tried to make sense of this, but I don't see where to start.

With constraints, for now I'm using a custom rigidbody constraints action.

As for add force, I wanted to use that action as an alternative to physics shoot because physics shoot action only works in a 3D game, or itween move add. However when use Add force whether I set Y parameter to 5 or 16, the speed of that action is too slow and makes the player launch in the air without falling back down.
« Last Edit: April 03, 2015, 02:14:19 PM by coffeeANDsoda »