Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: thisisthemoon on June 24, 2013, 07:59:20 PM

Title: Create Object / Character Controller
Post by: thisisthemoon on June 24, 2013, 07:59:20 PM
Hello! I am trying to wrap my mind around the following.  :P

I am building a puzzle/platformer game and currently have a character controller working with 'Get Axis & Controller Simple Move.'
 
I am trying to spawn a series of smaller controllable characters. Each time putting the new character in control and the old behind. Essentially "cycling" through the the five selectable characters.

Playmaker is so great!


Title: Re: Create Object / Character Controller
Post by: jeanfabre on June 25, 2013, 02:12:06 AM
Hi,

 Use prefabs for this. Have each of your characters as prefabs, and when switching you simply create a chracter in place of the current, AND delete the current character.

Also, one thing that you need to be careful, create your new char slightly in the air so that the collision with the floor is properly detected, if you spawn right on the floor it might fall through.


Bye,

 Jean