The game I'm making has an 'overworld' mode and a 'battle' mode.
As entering the battle mode means loading between NBASIC blocks and so, losing my variables, I have a system in which they're stored in VRAM. This includes the last position of the player on the map.
At the start of the 'main' program (the overworld), the coordinates on the map (which are MX and MY) are read from VRAM, like so:
I tested it thoroughly and this works correctly.
Now, the problem is, when I convert the values and try to write to VRAM, something goes wrong:
The values all check out; the calculation is correct, but the PSET commands only place black (color 0) points, while the variables do hold the right numerical value.
Login sesión o register para postear comentarios