Two Questions... Sprite vs Bitmap and "!"

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!
1) What is the difference between loading up an image as a sprite vs a bitmap? Or are they inherently the same?
Put simply the Sprite Object contains and manipulates a Bitmap Object.

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...
Nope don't think it should make too much difference.
How are you loading the sprite? Using an event listener could help.

2) If there is an exclamation mark in front of a boolean function, in an if statement, does that mean whatever that function returns is flipped into the opposite?
Yes basically that means "NOT"
More info:
https://www.w3schools.com/js/js_comparisons.asp
https://www.w3schools.com/js/tryit.asp?filename=tryjs_comparison_not

Hope that helps 🙂
I can add more info if needed... but w3schools should really cover it nicely. 😉

Original thread: https://forums.rpgmakerweb.com/threads/two-questions-sprite-vs-bitmap-and.121872/