Closed lscharen closed 2 years ago
Behaviors like that aren't built-in, so the main code would need to track the on/off state of the sprite. But, there would be two ways to accomplish that effect
Neither one of these is ideal. Switching to a transparent sprite will still go through the work of drawing, and moving it off screen can be inconvenient if the scroll position is based off of the Sprite's location on-screen. I have some free bits to use, so I think having a SPRITE_HIDE flag is useful enough to be added.
Flag added and example added to sprite demo. Use f
key to toggle "flash" effect
From Alex L: https://apple2infinitum.slack.com/archives/CPSGNGE05/p1637562144077500?thread_ts=1637439754.061100&cid=CPSGNGE05
Can the GTE support flickering sprites if you want them? For example, if a player gets hit/damaged and is temporarily invulnerable, giving them time to move to a safer spot, and their sprite flickers during this time?