Question by
jwflez · May 09, 2017 at 04:19 AM ·
transformpositionif-statements
if object passes position then...,
I want to say if a object passes a certain point, it responds at new coordinates
void Update(){
if (transform.position.y < -3 ){
transform.position = new Vector2(-13,1);
}
}
Comment
Your answer
Follow this Question
Related Questions
Locking player's Y position while jumping and near a wall 0 Answers
How do you access the transform of a gameobject and put it in a variable? 3 Answers
how to move the enemy in the current position of the player but only ones? 0 Answers
Camera isn't move position? Why my camera isn't change position? 0 Answers
How to change position of gameobject 2 Answers