0 Members and 6 Guests are viewing this topic.
Do you have a tile that isn't anything (or is, say, floor)?Say it's zero, and the map is 12*8 (typical 8*8-tile map) and stored row-by-row...Spoiler For code: .if you have number for tile instead of X,Y.say number is NN/12→YN-(Y*12)→X.X and Y are # tiles counting from zero from the left/top edges respectively.assuming it's 1 byte/tile0→{Y*12+X+GDB#}Ofc variables can be changed so they don't overwrite X and Y
:[01010101010101]->GDB1:2->{2+GDB1}That would make that GDB1=01010201010101
That is possible, but that is called 'self-modifying code' or 'writeback'. The thing is, that you cannot use it in an app. The best way is copying the map to L1 or another place in RAM.
Nope, you should copy it to some place in RAM that you can edit freely, then delete it afterward (My tip: use an appvar)
For(P,0,C)If abs({P*2+L1+1}-Y)<7If abs({P*2+L1}-X)<7E--EndEndEndText(40,1,"HEALTH:")Rect(66,2,(66+(E/2)),5)If E<12->NReturnEnd
Doesn't crabcake require you to exit in a very specific manner?