I’m new here so I don’t have any experience yet. I have a problem. I built up a floating platform for my first game, but when I put the player on, the floating platform goes on but the player is left without moving. What I want is that both move together. How I can solve this problem?
FYI, you’ll get more responses to scripting questions in the scripting forum.
And there are several solutions to your problem. The simplest would be something along these lines:
var platform : Transform; //assign in inspector
var playerOnPlaform = true;
function Update(){
if (playerOnPlatform) transform.position.x = platform.position.x;
}