Badly worded title... basically I have a three axis mesh like you see in TED or other object placement program:

I want it to move the selected mesh (e\sel) when I click and hold on the selected axis
Here's my code:
Select CameraPick(cam,MouseX(),MouseY()) ;start camerapick select ;;;;;;;;;;;;;;;;
Case y_axis ;y ;;;;;;;;;;;;;;;;;
EntityColor y_axis,200,200,0
If MouseDown(1) Then
If method$="Mouse - Free"
If e\sel=1
CameraProject(cam,EntityX(e\mesh),EntityY(e\mesh),EntityZ(e\mesh))
If MouseYSpeed()>0 Then MoveEntity e\mesh,0,1,0
If MouseYSpeed()<0 Then MoveEntity e\mesh,0,-1,0
MoveMouse ms,my
EndIf
EndIf
EndIf
Case x_axis ;x ;;;;;;;;;;;;;;;;;;;;
EntityColor x_axis,200,200,0
If MouseDown(1) Then
If e\sel=1
CameraProject(cam,EntityX(e\mesh),EntityY(e\mesh),EntityZ(e\mesh))
If MouseXSpeed()>0 Then MoveEntity e\mesh,1,0,0
If MouseXSpeed()<0 Then MoveEntity e\mesh,-1,0,0
MoveMouse ms,my
EndIf
EndIf
Case z_axis ;z ;;;;;;;;;;;;;;;;;;;;;
EntityColor z_axis,200,200,0
If MouseDown(1) Then
If method$="Mouse - Free"
If e\sel=1
CameraProject(cam,EntityX(e\mesh),EntityY(e\mesh),EntityZ(e\mesh))
If MouseYSpeed()>0 Then MoveEntity e\mesh,0,0,-1
If MouseYSpeed()<0 Then MoveEntity e\mesh,0,0,1
MoveMouse ms,my
EndIf
EndIf
EndIf
End Select ;end select of axes ;;;;;;;;;;;;;;;;;;;;;
|