? BGCHK not returning expected bitfield (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

BGCHK not returning expected bitfield

  • #1 ✎ 69 calc84maniac OSP Contest 1 Winner I won the first SmileBASIC Source OSP Contest! Programming Contest Amazing Page Hidden Achievements Scholar Received for knowing a great deal about programming topics Achievements The documentation says that BGCHK should return Rotation, Scaling, Color, and Variable animation states in bitmasks 16, 32, 64, and 128 (corresponding to #CHKR, CHKS, #CHKC, and #CHKV). However, in reality it uses bitmasks 4, 8, 16, and 32, so those built-in constants cannot be used. Posted
  • #2 ✎ 1065 randomous Owner Robot Hidden Easter Eggs Second Year My account is over 2 years old Website Drawing I like to draw! Hobbies Oh, even the constants are wrong? Jeez, how did they not catch that? That's like a basic thing to catch; don't they have a code suite which tests all these? Does nobody unit test? Posted
  • #3 ✎ 69 calc84maniac OSP Contest 1 Winner I won the first SmileBASIC Source OSP Contest! Programming Contest Amazing Page Hidden Achievements Scholar Received for knowing a great deal about programming topics Achievements The constants are for sprites -- those work fine. However, BGs don't have Definition or UV animation, so that explains the discrepancy. Posted
  • #4 ✎ 1572 12Me21 Head Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website The manual now says that BGCHK uses 4, 8, 16, and 32 (I'm not sure if it was always like this, or if they fixed it at some point) It does still claim that #CHKR/S/C/V have the values 4, 8, 16, and 32 though, even though they are really 16, 32, 64, and 128. Posted Edited by 12Me21