Hi, I was using the sprite control lib in the code archives... however, I am wondering how one would go about implementing collisions and mouse selects with that library?
I have tried to add this into the code:
You can see the rest of this cool library in the codr archives.
I have tried to add this into the code:
; create a blank sprite image (from a quad mesh) Function CreateImage3D(w=1,h=1,par=-1) If par=-1 par=spritecam Local sprite=CreateMesh(par) Local s=CreateSurface(sprite) AddVertex s,-1,1,0 ,0,0 : AddVertex s,1,1,0 , 1,0 AddVertex s,-1,-1,0 ,0,1 : AddVertex s,1,-1,0 , 1,1 AddTriangle s,0,1,2 : AddTriangle s,3,2,1 ;Here is what I added to try and get picking working EntityPickMode sprite,1 EntityRadius sprite,w EntityFX sprite,1+16 ResizeImage3D sprite,w,h Return sprite End Function
You can see the rest of this cool library in the codr archives.