ok i'm making a level editor for my game, it all works how i want it to but i want to make it so that when i select another segment, the last one turns back to it's normal, single textured, state.
how would i go about doing this?
load object "minesegstrait.x",1
load image "straighttex.bmp",1
load image "select.bmp",2
set object cull 1,0
texture object 1,1
autocam off
make object cube 2,1
hide object 2
position camera 0,1115.65,-15.79
xrotate camera -272.53
newnum#=3
do
sync
move camera mousemovez()/8
position object 2,object position x(2),camera position y(),object position z(2)
if upkey()=1 then move object 2,1
if downkey()=1 then move object 2,-1
if leftkey()=1 then move object left 2,1
if rightkey()=1 then move object right 2,1
if mouseclick()=1
objnum#=pick object(mousex(),mousey(),1,100)
if objnum#>0 then set blend mapping on objnum#,2,4
endif
if spacekey()=1 and objnum#>0
set blend mapping on objnum#,2,1
clone object newnum#,objnum#
move object newnum#,90
move object left newnum#,90
wait 100
newnum#=newnum#+1
endif
position camera object position x(2),camera position y(),object position z(2)
loop
thanks to deathead for the sig!
Projects: alien abductor-5%