トピック
Blastoise§ Gastly52

Requesting Troubleshooting Help

What's going on? How do I fix it?
1そうだね
プレイ済み
返信[1]
親投稿
Blastoise§ Gastly52
Here's the code.
2そうだね
プレイ済み
返信[2]
親投稿
Josh josh.h7
It seems you went past the sprite limit, put this before SPSET S,Z IF S>511 THEN S=511
2そうだね
プレイ済み
返信[3]
親投稿
OlOOlOOl pi_r_round
Why are you incrementing S? (2nd last line)
1そうだね
プレイ済み
返信[4]
親投稿
SıмΞоп SimeonW
Improvement of Josh's code S=MIN(S,511)
1そうだね
プレイ済み
返信[5]
親投稿
SıмΞоп SimeonW
Blastoise: Instead of all those if statements, simplify it like so: IF B AND #UP IF B AND #DOWN IF B AND #LEFT IF B AND #RIGHT That way it compares the binary numbers through a bitwise AND gate, the code is much cleaner and faster
1そうだね
プレイ済み
返信[6]
親投稿
Blastoise§ Gastly52
Thanks everyone. I didn't realize how fast the sprite limit ran out. @010010 I incremented S as an attempt to create multiple "clones" of one sprite that could be moved without changing the others to "draw" by changing the management # of each.
1そうだね
プレイ済み