Hallo,
Ich habe ein Problem und zwar(auf wenn ich ihn eigentlich bewegen kann) einen Bug den ich nicht lösen kann.
Der Bug ist das der Sprite bei Adresse 53248 bis 235 läuft und, dann Adresse 53264 auf 1 schaltet damit es eben ohne error endet. Nur wenn ich dann zurücklaufe endet er in eineim Quantity error(siehe anhang)
Der Code dazu ist dieser hier:
Code
- 20 poke 2040,13:poke 53269,1
- 22 poke 53248,100:poke 53249,100
- 25 y=peek(53249):x=peek(53248)
- 30 get a$:if a$="" then 30
- 40 e=asc(a$)
- 50 if e<> 87 and e<>65 and e<>83 and e<>68 then 30
- 60 if e=87 then poke 53249,y-15: rem w taste
- 65 if e=83 then poke 53249,y+15: rem s taste
- 70 if e=65 then poke 53248,x-15: rem a taste
- 73 if e=65 and peek(53248)=0 then poke53264,0:poke 53248,235
- 75 if e=68 then poke 53248,x+15: rem d taste
- 80 if e=68 and x=235 then poke 53264,1:poke 53248,0
- 90 ?"53248: ";peek(53248), "53264: ";peek(53264)
- 100 goto 25