1) What is the difference between loading up an image as a sprite vs a bitmap? Or are they inherently the same?
I have made a function that loads up a sprite in a menu scene. When in game there is a noticeable lag. I wonder if loading it as a bitmap would have been better...
2) If there is an exclaimation mark infront of a boolean function, in an if statement, does that mean whatever that function returns is flipped into the opposite? Like if Function X returned true, but when put in an if statement if( !function x) would that check if it's false?... Actually I'm just confused greatly about the exclaimation/bang mark in general. If someone could give me a demonstration on how to understand it that would be lovely...
hehe. Thanks!
I have made a function that loads up a sprite in a menu scene. When in game there is a noticeable lag. I wonder if loading it as a bitmap would have been better...
2) If there is an exclaimation mark infront of a boolean function, in an if statement, does that mean whatever that function returns is flipped into the opposite? Like if Function X returned true, but when put in an if statement if( !function x) would that check if it's false?... Actually I'm just confused greatly about the exclaimation/bang mark in general. If someone could give me a demonstration on how to understand it that would be lovely...
hehe. Thanks!