@Ramus73
I think TheComet was saying to use
Paste Image not
Paste Sprite. The advantage in using sprites is using sprite collision detection, resizing, and flipping and mirroring. But Sprites eat more processing power than images.
Quote: "Sprites would only paste if I call the sprite first with Sprite n,x,y,i, I then paste it and Hide it, so my next question is does this take more processor time than just having the sprite displayed all the time"
If you want to use sprites and paste sprite, you ae correct, you have to call the sprite at least once to create it, but after that you can keep it permanently hidden. You don't have to show it to paste it. Keeping it hidden is WAAAYYYY less processor consuming than showing it and you can still use collision detection with a hidden sprite. If you don't want it to show at all even when you first create it, create it offscreen -
Sprite spt,-200,-200,img
Then hide it immediately:
Hide Sprite spt
Now whenever you want it to appear and if you want to use collision, position the sprite first, then paste it in the same location:
sprite spt,x,y,img
paste sprite spt,x,y
The sprite is still hidden but you see it's image because you pasted it. The sprite image pasted to the screen is identical to the current state of the sprite, taking into account scaling, flipping and mirroring.
Quote: " I use a atan function to detect how close sprites are to player sprite and only paste sprites when in the visible screen area, does this help the FPS or should I just paste them without checking distances?"
Actually when the sprite is offscreen, it takes less processing power because it isn't being rendered so your onscreen check might be superfluous.
Quote: " Oh and Caleb thnx but I think you will find that Set Sprite n,backsave,transparency is the command"
Actually Caleb was also refering to the
Paste Image command which will paste an image - Not a sprite - to the location. Adding a ,1 at the end will allow Paste image to paste with transparency.
Again, if you want to use Sprites, the Set Sprite command you mentioned will save you some processing power as well. If you turn off Sprite transparency and backsaving, your FPS will increase.
Be careful how you are reading the posts because you might be missing out on information you didn't have.
Enjoy your day.