I know I put it in the other thread but they are going to be mixing songs so I almost better open another thread just in case.
I upload an example of the problem I have so you can see what I mean ... move with wasd, look for a torch with particles, this is how they should look.
press the right button to activate the minimap and see what happens to the torches .....
is this a bug? PLEASE TAKE A MINUTE TO TRY IT
I put the code that creates the minimap
function DrawMinimap()
SetSpriteVisible(puntero,0)
setspritevisible(minimapa,0)
SetAmbientColor(40,0,0)
SetCameraFOV(1,0)
SetCameraOrthoWidth( 1, 480 )
SetCameraPosition(1,playerx#,playery#+700,playerz#-150)
// this needs to be created outside the function or you're going to run into memory problems then just reuse the image
playerx# = getobjectx(objID)
playerz# = getobjectz(objID)
playery# = getobjecty(objID)
SetRenderToImage(1, -1) //I believe this should be (1,-1) the help file doesn't explain this well
ClearScreen() //needs to be here
SetCameraPosition(1,playerx#,playery#+700,playerz#-150) // are you sure you want to place the camera 1000 units above the player?
//need to get your original camera angle since its being changed if its always pointed at character then Im not sure the following command is needed - no need to recalculate the camera angle
//SetCameraLookAt(1,playerx#,playerx#,playerx#,0)
Render()
SetSpriteImage(minimapa,1) // not needed if you've already set minimapa to use image 1
SetRenderToScreen()
SetCameraPosition(1,playerx#,playery#+camara_distancia,playerz#-80)
//need to get your original camera angle
SetAmbientColor(0,0,0)
SetCameraFOV(1,80)
SetSpriteVisible(puntero,1)
setspritevisible(minimapa,1)
endfunction
and the game loop
do
if desactiva = 1
DrawMinimap()
SetSpriteVisible(minimapa,1)
else
SetSpriteVisible(minimapa,0)
endif
recoloca_caracter_camara(objID)
controla_prota()
orienta_enemigos()
SetSpritePosition(minimapa,580,10)
actualiza_balas()
SetSpritePosition(puntero,GetPointerX()-GetSpriteWidth(puntero)/2,GetPointerY()-GetSpriteHeight(puntero)/2)
if ( GetRawKeyPressed(27) ) then exit
if GetRawMouseRightPressed() = 1
desactiva = abs ( desactiva -1 )
endif
Print( ScreenFPS() )
print ( desactiva )
Sync()
loop
22/5000
I don't know why it happens or what I can do to prevent it from happening
EDIT: DOES NOT ALLOW ME TO UPLOAD THE FILE, I PUT LINK
https://1drv.ms/u/s!Alw4cxQZ85htg484y_fFr-24BKFkOA?e=guqq2R
using AppGameKit V2 tier 1