playMaker

Author Topic: Player (Clone) loads in new scene *Please HELP!*  (Read 1521 times)

SuperKonata

  • Playmaker Newbie
  • *
  • Posts: 1
Player (Clone) loads in new scene *Please HELP!*
« on: April 24, 2014, 12:34:07 PM »
Hi Guys

I'm having a lot of trouble with my game.

What I want to do in my game is: When another level is loaded I want the player to spawn in the place I want it to be. So fare I have told the player in an FSM "Don't Destroy on Load" so that the player stays and spawns in the area I want.

Problem:

When doing that the "Player" doesn't spawn there but a "Clone" does which is not what I wanted (I don't want a clone in the game) and the original just falls in another place and falls of the map.

Notes:

The player is a Prefab

I used a cube for the "Create Game Object" Action FSM

I've Attached some pictures to help you get a better idea

If ANYONE! can help me before the 29th April 2014 I would be realy REALLY Grateful.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Player (Clone) loads in new scene *Please HELP!*
« Reply #1 on: April 28, 2014, 06:20:09 AM »
Hi,

 if you us the "create object" action, then it will simply clone and clone again your prefab.

 Instead simply use "Set position" and move your existing player to the position in one shot. You can disable/enable your player when paused or when loading a new level and enable it when it's placed properly again.

Bye,

 Jean