- Home /
Tron type Game Question
Hey guys, So here's a interesting question me and my friend are trying to figure out for a quick game were working on to take a break from the bigger project. its a tron like game where you spawn a wall behind your character and if another player hits it they die. Here's the problem online the player prefab is the same so when you run into the other players wall nothing happens because it's tagged as your wall as well. Is there a way i could write a script to say if the wall you hit didn't spawn from local player then die? Thanks in advance.
Answer by Commoble · Mar 20, 2017 at 05:53 PM
Instead of using tags, the walls should have data about which player created them.
that's what i was starting to think.
how could i classify what player spawned them in if all the players are from the same prefab?
Your answer
Follow this Question
Related Questions
Move from A to B after recieving touch input 1 Answer
Need help fixing my script 1 Answer
Slowly increase motor.force 1 Answer
How do I make a photography function? 0 Answers
Show speed in UI 1 Answer