PlayMaker Updates & Downloads > Share New Actions

Spaceship Controller

(1/2) > >>

RowdyMrB:
I have challenged myself to build a space shooter using playMaker and ran into a bit of a challenge when trying to build the player spaceship controller. No one seems to have done this yet and I could not figure out how to piece it together from the available actions.  So for my first custom playMaker action I thought I would give it a try.

For anyone interested what I did was modify the AddTorque action a bit to build a simple spaceship controller using mouse input.  To use the attached action just create an separate FSM for each axis (x,y,z) and make a start state (x Input, ...) and a movement state.  Add the Axis Event action to the start state and the attached action to the movement state and fill in the appropriate multiplier variable for each axis FSM.  I also added a Send Event action to the movement state back to the start.  Play with the multipliers and the Unity input manager settings to get different results.

Still have some work to do with it but it's a start.

jeanfabre:
Hi,

 Good Start!

 Few things:

-- Expose the input references, so that we can decide what input axis to use, that will make the action a lot more flexible. And simply put as defaults the usuals.

-- multiplier should be set to the default value instead of using a variable , otherwise the action doesn't work if you simply drop it on a go.

-- also, you definitly can add the thrust input in this action, that will make it complete.

bye,

 Jean

RowdyMrB:
Thanks for the feedback I will work on those items and resubmit.

RowdyMrB:
Jean,
Attached is the current version of the Spaceship controller action.  I think this version is easier to use.  I did not add default multiplier values but added a tooltips comment instead.  The values really depend on what movements you are trying to achieve so it is good to experiment a little.  Likewise, I did not add a thruster input as I handle that in a separate set of FSMs.  I start with a Thruster Control FSM that takes key input and then use separate FSMs for each thruster game object that controls sound, particles, and force.

Thanks for your feedback it really made me rethink how I was doing this.

B

jeanfabre:
Hi,

 You totally got the spirit of playmaker actions here! you made it as a totally generic torque controller, so it can be applied to any situations, not just spaceship. Way to go.

Tho, now, it's actually the same as "Add torque" action really  :o


bye,

 Jean

Navigation

[0] Message Index

[#] Next page

Go to full version