Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Eirestudios on December 17, 2013, 11:29:02 AM

Title: Top down shooter questions
Post by: Eirestudios on December 17, 2013, 11:29:02 AM
Hi guys, I bought playmaker a while back but I'm only starting to learn it now because I just finished up my final project on another game engine.

My questions are, is it easy to make a top down controller where the player (cube) rotates to the position of the mouse and can I get the cube to move using the arrow keys? Can I get a bullet to spawn and fire towards the X & Y position of the mouse? I'm not looking for someone to make it for me, what I'm looking for is to be pointed in the right direction so I can learn how to do it myself.

Thanks in advance guys  :)
Title: Re: Top down shooter questions
Post by: Lane on December 17, 2013, 11:32:29 AM
Check out Angry Ships (http://hutonggames.com/playmakerforum/index.php?topic=4025.0).

Basically you use a wrapper object, add the directional controls to that (probably utilizing Get Axis), then put the rotation controls on the model object (Mouse pick intersection with floor). Firing is a matter of spawning a prefab and the prefab handles its own acceleration, collision and damage behavior.
Title: Re: Top down shooter questions
Post by: Eirestudios on December 17, 2013, 11:41:51 AM
Wow thanks! that exactly what I'm looking for :)
Title: Re: Top down shooter questions
Post by: Lane on December 17, 2013, 11:45:12 AM
You bet! Feel free to post up questions. =)