I'm busy with making a strategie game and now i'm building a multiply select Rect.
if you run this code you see a cool begin.
That's oke but how to select all the object inside that rect?
Please edit the code below,
I try everything but nothing works,
if you run this code you see a cool begin.
That's oke but how to select all the object inside that rect?
Please edit the code below,
I try everything but nothing works,
Graphics3D 320,240,32,2 Global cursor SetBuffer BackBuffer() camera=CreateCamera() light=CreateLight() RotateEntity light,90,0,0 ;cursor cursor = LoadImage("cursor.png") MaskImage cursor,0,255,255 ;pickable object 1 cone=CreateCone(20) EntityPickMode cone,2 PositionEntity cone,0,0,5 ;pickable object 2 cone2=CreateCone(5) EntityPickMode cone2,2 PositionEntity cone2,3,3,3 While Not KeyHit(1) RenderWorld UpdateWorld mX =MouseX() mY =MouseY() If MouseHit(1) selectX = MouseX() selectY = MouseY() EndIf ;---+ If MouseDown(1) m_width = mX-selectX m_height= mY-selectY Rect selectX,selectY,m_width,m_height,0 CameraPick(camera,mX,mY) EndIf DrawImage cursor,mX,mY If PickedEntity() Then Text 0,0,"PickedEntity: "+PickedEntity() EndIf Flip Wend End