camera.setPos not working

3 posts
by astrotutor » Wed Feb 20, 2013 11:06 am
I've been working on a Minecraft magic trick and trying to fix the position of the camera. Unfortunately it appears to be the only camera command that doesn't work.

In LXTerminal I can change the camera position to follow with

but,0,0) # setting values for x,y & z

does not work. Any ideas?

I've noticed that in the file there is a 'mode' missing from the camera.setPos command but putting it in and saving has no effect. The magic trick works but it would be better if the camera was fixed.
Posts: 5
Joined: Wed Feb 20, 2013 10:57 am
by davef21370 » Wed Feb 20, 2013 5:48 pm
Could you possibly post the source between code tags? I can probably help but don't have the file in front of me at the moment.

Please feel free to tap into my abundant lack of knowledge.
User avatar
Posts: 481
Joined: Fri Sep 21, 2012 4:13 pm
Location: Up North
by astrotutor » Mon Apr 08, 2013 8:36 am
Sorry it's been a while since I've been here.

Camera position does work but it seems you need to set it to normal first then follow it and finally fix it. The camera then stays in position looking straight down and Steve can then walk off screen. I've used the following in a magic disappearing trick where Steve has a house built around him and he disappears once the house is removed.

Code: Select all
# Set camera to above player position
Posts: 5
Joined: Wed Feb 20, 2013 10:57 am