Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse sprite and ram aren't linked #2583

Open
SRB2er opened this issue May 11, 2024 Discussed in #2577 · 1 comment
Open

Mouse sprite and ram aren't linked #2583

SRB2er opened this issue May 11, 2024 Discussed in #2577 · 1 comment

Comments

@SRB2er
Copy link

SRB2er commented May 11, 2024

Originally posted here until i just remembered issues exist. sorry.

I found out a weird bug with the sprite the mouse uses
rather than always use the data in ram, the mouse seems to only use the sprite in ram during startup, after which it can't be changed (not linked between each other)

here's some lua code to explain what I mean
(you'll need to put a sprite in spr 257):

--mouse sprite "bug"
--put something in sprite 257 for this
--preferably something that isnt just 1 color
t=0
function TIC()
 cls()
 mx,my=mouse()
 --self explanatory
 print("sprite 257:",mx-64,my-10,12)
 --self explanatory
 print("mouse:",mx-64,my,12)
 --draws sprite 257 8 pixels under mouse
 spr(257,mx,my-10) 
 --should set mouse sprite to 257
 poke(0x3ffb,1) 
 -- writes a semi checkboard of 
 -- white and red to sprite 257
 -- after 5 seconds
 if t>300 then
 memset(0x6020,0xc2,32)
 end
 t=t+1
end
@SRB2er SRB2er changed the title [BUG(?)] Mouse sprite and ram aren't linked Mouse sprite and ram aren't linked May 11, 2024
@Miguel-hrvs
Copy link
Contributor

Fixed by: #2629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants