|
Post by AppThing on Jun 3, 2014 10:16:33 GMT
Hi, looking at the Player Spawn script, I see that it respawns at the players last known position, could you make this a tick box option so you can specify a fixed re-spawn point if desired? e.g. for me this was back at the beginning of the level/maze/map etc. I have updated your script for my own use, but it would be nice to still have this option after a future update.
for others who may want a similar feature: i created a new line at line 17 (in the class variables declaration section)
public bool followPlayer; then In FixedUpdate at around line 49 i have:
if(followPlayer) playerPosition = Player.position; thanks.
|
|
|
Post by DarkTonic Dev on Jun 3, 2014 23:54:08 GMT
Sounds good, I'll add it in the next version or 2! However, note that Killable now has a Respawn Settings section which can do what you want as well. Then you wouldn't even need the Player Spawner script perhaps.
|
|
|
Post by AppThing on Jun 4, 2014 8:05:19 GMT
ok, I did notice late yesterday there was an update available on the unity asset store so will check it out. If you do look to add the followPlayer suggestion, then could you also investigate one other option :-) it would be nice to be able to have the Player GameObject in the scene during editing, however currently if I do this then two Player objects appear at the beginning of the game, is it a simple task to get the script to check if the Player object is active in the scene at startup and if so not spawn a copy (just stuff it into the pooler for later use or whatever)?
I have to say this is an excellent core framework and is already inspiring me on a couple of new game ideas... :-) Congrats and thanks...
|
|
|
Post by DarkTonic Dev on Jun 4, 2014 15:57:45 GMT
Perhaps, I'll check.
|
|