playMaker

Author Topic: Playmaker Stops My Player from Moving?  (Read 2672 times)

PixelSteel

  • Playmaker Newbie
  • *
  • Posts: 9
Playmaker Stops My Player from Moving?
« on: July 22, 2015, 01:15:08 AM »
Hi,

I was recently trying to create a tutorial
for YouTube about simple enemys.

The player is a cube with a rigidbody
and a script that allows him to move
around the platform using the WASD.

When ever the action "Destroy Object"
destroys the player then it
translates to the action "Create Object"
so it respawns the player as a clone, but
when that happens it disables the moving
script I added to the player (meaning it removes
the players ability to move) even though
it is a clone of the player with the same
scripts on the player... any luck? or ideas?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Playmaker Stops My Player from Moving?
« Reply #1 on: July 22, 2015, 09:49:03 AM »
Probably, the script has some references to the scene and creating a new one from a prefab doesn't work like the original one. Try creating the player the same way the first time.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

PixelSteel

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Playmaker Stops My Player from Moving?
« Reply #2 on: July 22, 2015, 04:16:14 PM »
Thank you Lane!

Now I can finally make my
simple respawn and death
tutorial for YouTube!

PixelSteel

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Playmaker Stops My Player from Moving?
« Reply #3 on: July 22, 2015, 04:23:46 PM »
But theres one more thing...

Do you have any idea on how
to not make the player be
player(clone) when it respawns?

Because then the player could not
be destroyed twice, only once.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Playmaker Stops My Player from Moving?
« Reply #4 on: July 22, 2015, 04:28:26 PM »
When the player spawns, just set the name to what you want.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

PixelSteel

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Playmaker Stops My Player from Moving?
« Reply #5 on: July 22, 2015, 04:29:23 PM »
Umm, sorry but how can I?