Alright, first of, thank you for sparing me so much pain. I think i'm atleast on the right track now.
So it works like it should now, but i dont want the object to stretch all the way to the edge of the screen. i want it to stretch from 96 to 0 pixels width while going from the very left to the middle of the screen.
Might need some explanation - i want a wall to appear 3D by adjusting width based on camera X
so if the thing was at the very left its width was 96 pixels while in the middle it would be 0.
i tried adding a + 100 / - 100 in an attempt to fix it, but to no success.
there any way?
EDIT:
So i made it work by doing (Self.X + ViewpointLeft(2)) /6 - 70. now the building shifts correctly and stuff.
but thanks for the support! without the Viewpoint stuff i'd still be punching keyboards now.
For anyone that might find this useful - the /6 - 70 part can be adjusted freely for different effects (kinda). If you're trying to do anything similar you might find you need to change these numbers a bit.