|
Dr Sodwind
Registered User
Join date: 16 Nov 2006
Posts: 3
|
11-17-2006 14:55
Hello,
Im creating a game with a game board. When the user starts to play I want them to look down at the board, possibly from an overhead perspective.
Im pretty sure this can be done because I have seen a few casino games like Blackjack do something similiar to what I want to do. Unfortuantly their scripts are not readable so I can't see how they acomplished this.
Any help would be greatly appriciated.
Thanks
|
|
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
|
11-17-2006 17:54
Try the camera lsl functions found on this page of the lslwiki: http://lslwiki.com/lslwiki/wakka.php?wakka=camera If the player has to sit on a seat you can script..., you can use the bottom two functions, llSetCameraAtOffset() and llSetCameraEyeOffset(). If the player is NOT required to sit, then you'll need to use the other camera functions listed on that page.
|
|
Dr Sodwind
Registered User
Join date: 16 Nov 2006
Posts: 3
|
11-17-2006 18:25
I tried those and it sorta does what I want default { state_entry() { llSetCameraEyeOffset(<0, 0, 5>); llSetCameraAtOffset(<1, 0, 5>); } }
But I get strange results. Sometimes im looking sideways and other times im staring flat into the ground. Any thoughts?
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
11-18-2006 01:23
Try hitting escape a couple of times if you're looking sideways and see if it moves to the right place. I found, although I've not tested it recently, that if I'd moved my POV and then sat, the camera controls maintained the offset I'd put in from the new position. Escaping back to the "default" position, put the camera into the place I'd expected.
|
|
HtF Visconti
Registered User
Join date: 21 Jul 2006
Posts: 123
|
11-20-2006 05:03
Well - straight down or up views did strange things to my camera most of the times. I usually use a very small x and y setting like 0.01 and the odd "camera moving to side" effect never occured again.
So - instead of <0,0,5> use <0.01,0,5> - you'll never notice the difference but it *should* keep the camera from developing a life of its own.
|