Hey Ross C
"Sorry, i didn't realise you posted anything :o) If it's a .bb i won't be able to look till i get home i'm afraid."
Dont worry ^^, i just posted again because the forum is big, so the topic could disapear soon.
"Just as a matter of being tidy, i think your creating a memory leak if you use this code:
;If KeyHit(2) Then
;FreeEntity Soldier
;Soldier=LoadSprite(StartWeapon$,1)
;ShotgunS(1)=LoadTexture("images/personageShotgun1.bmp",1)
;EndIf
Your freeing the sprite, and reloading it. Fair enough. BUT your also loading a texture into the same place the previous texture was. Now you have no reference to the last texture and it will sit in memory, thus creating a memory leak."
i searched whats memory leak ^^. so i should have used the FreeEntity ShotgunS(1) command? nice to learn it =D
"All of the images you have here, all have white backrounds. Blitz will not automactially mask them off. Blitz will give more alpha to the darker pixels. I'm not sure if your asking to find bugs in the code, or the images?"
yeah, its kind of confusing right? i am still sticked in why the bug happened you know? i found a way to pass by it, but its important to me know why it happened, to have no trouble in the future, and for learning too :)
the images are there because it was in the code so a thought it was easier ^^. i still didnt masked they, but their background is white, because how they are images and not sprites, i can mask them which color i want :) :) :).
Thanks a lot :)
hugs and see you
"Sorry, i didn't realise you posted anything :o) If it's a .bb i won't be able to look till i get home i'm afraid."
Dont worry ^^, i just posted again because the forum is big, so the topic could disapear soon.
"Just as a matter of being tidy, i think your creating a memory leak if you use this code:
;If KeyHit(2) Then
;FreeEntity Soldier
;Soldier=LoadSprite(StartWeapon$,1)
;ShotgunS(1)=LoadTexture("images/personageShotgun1.bmp",1)
;EndIf
Your freeing the sprite, and reloading it. Fair enough. BUT your also loading a texture into the same place the previous texture was. Now you have no reference to the last texture and it will sit in memory, thus creating a memory leak."
i searched whats memory leak ^^. so i should have used the FreeEntity ShotgunS(1) command? nice to learn it =D
"All of the images you have here, all have white backrounds. Blitz will not automactially mask them off. Blitz will give more alpha to the darker pixels. I'm not sure if your asking to find bugs in the code, or the images?"
yeah, its kind of confusing right? i am still sticked in why the bug happened you know? i found a way to pass by it, but its important to me know why it happened, to have no trouble in the future, and for learning too :)
the images are there because it was in the code so a thought it was easier ^^. i still didnt masked they, but their background is white, because how they are images and not sprites, i can mask them which color i want :) :) :).
Thanks a lot :)
hugs and see you