Hi guys, I’m having trouble trying to offset a game object and just wondering if anyone can help. I’ve made two vector2 variables called offset and elepos (meaning elephant position) and assigned these the amount I want to offset by and the elephant’s x y position, like this -
offset = new Vector2(5 , 0);
and
elepos = new Vector2(transform.position.x,transform.position.y);
I then want the offset to happen after an if statement by simply saying - elepos += offset;
This isn’t creating any errors but isn’t doing anything, am I doing something wrong? Cheers guys
You’ve already posted this several times; please stop spamming topics. As per the rules, no duplicate topics are allowed. Also please post in the correct category.
–Eric