|
Rocketman Raymaker
Registered User
Join date: 4 Feb 2007
Posts: 530
|
05-12-2007 03:56
I was wondering if it is possible to respond to object touches in relation to where the object is touched.
For example i am making a game and at present the scoring system uses four separate prims .
What i want to know is if i can use just one prim divided into four separate areas with each area performing a different action.
Is this possible or will i have to use four prims?
I have seen a roulette table that sort of accomplished this, it had a one prim top and your bet would be decided by where you placed your chips (another prim).
_____________________
"Proud member of the anti-ginko busy body committee"
|
|
Lucius Nesterov
Registered User
Join date: 12 Oct 2006
Posts: 33
|
05-12-2007 04:51
If you were placing a prim on the roulette table, you could use their relative positions to work out where it was.
Unfortunately I don't think touch events give you any information on position, so you'll have to use one prim for each region. If you have a problem lining up textures in the different prims, you could use a base prim as a background, and then invisible prims as buttons on top.
|
|
Bloodsong Termagant
Manic Artist
Join date: 22 Jan 2007
Posts: 615
|
05-14-2007 07:27
heyas;
if you mean to have a touch event for each different side of a prim, or the top or bottom of the prim, or some arbitrary place on the prim's face (ie a texture) -- then no. you can only touch the 'whole' prim.
_____________________
Why Johnny Can't Rotate: http://forums.secondlife.com/showthread.php?t=94705
|