Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: coffeeANDsoda on March 27, 2015, 10:28:13 PM

Title: Setting up a 2D cannon system via playmaker
Post by: coffeeANDsoda 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
Title: Re: Setting up a 2D cannon system via playmaker
Post by: coffeeANDsoda 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. 
Title: Re: Setting up a 2D cannon system via playmaker
Post by: coffeeANDsoda on April 02, 2015, 06:43:59 PM
Anyone?
Title: Re: Setting up a 2D cannon system via playmaker
Post by: jeanfabre 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
Title: Re: Setting up a 2D cannon system via playmaker
Post by: coffeeANDsoda 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.