05-02-2024, 05:29 PM
(This post was last modified: 05-02-2024, 05:32 PM by TerryRitchie.)
I just discovered a new anomaly concerning Search --> Find. Copy the following code into the IDE.
Go to Search, then Find, and type in _rgb for the search term then hit ENTER
The first instance of _RGB32 is highlighted but not the second instance.
Now, click on the menu toolbar anywhere this is not menu text, just to the right of Tools for example. The second highlight will appear.
The very first time I did the search they both highlighted. But subsequent searches had this strange anomaly.
** Update, ok, now I'm having problems getting this to happen again. It seems using the mouse to access the menu options versus the keyboard may have something to do with this?
Go to Search, then Find, and type in _rgb for the search term then hit ENTER
The first instance of _RGB32 is highlighted but not the second instance.
Now, click on the menu toolbar anywhere this is not menu text, just to the right of Tools for example. The second highlight will appear.
The very first time I did the search they both highlighted. But subsequent searches had this strange anomaly.
** Update, ok, now I'm having problems getting this to happen again. It seems using the mouse to access the menu options versus the keyboard may have something to do with this?
Code: (Select All)
'* Animation Demo *
SpriteSheet& = _LOADIMAGE("walksheet104x156.png", 32) ' load sprite sheet
_CLEARCOLOR _RGB32(255, 0, 255), SpriteSheet& ' set transparent color
SCREEN _NEWIMAGE(104, 156, 32) ' enter graphics screen
DO ' begin animation loop
_LIMIT 5 ' 5 frames per second
CLS , _RGB32(255, 255, 255) ' clear screen white
c = c + 1 ' increment cell counter
IF c = 6 THEN c = 0 ' reset when necessary
_PUTIMAGE , SpriteSheet&, 0, (c * 104, 0)-(c * 104 + 103, 155) ' display cell from sheet
_DISPLAY ' update screen change
LOOP UNTIL _KEYDOWN(27) ' leave when ESC pressed
SYSTEM ' return to OS