- Detecting if a cell on the homescreen is occupied?
- 16 Feb 2015 09:43:15 pm
- Last edited by M. I. Wright on 16 Feb 2015 09:57:47 pm; edited 1 time in total
(note that I haven't looked at any tutorials for this, so please excuse/explain any errors the code has)
So I want to make a simple(ish?) platformer- after toying around with some different things, I settled on this code: http://pastebin.com/340Mj2k9 (prgmDELAY is this but with R as the variable instead of A).
I want to add obstacles to it, though- I know I could do normal collision detection with this method but I want the obstacles to be randomly placed [say, Output(randInt(2,25),randInt(2,9),---)] and the only way I can think of that this would work is if I could detect something in a certain cell.
soo... yeah. What the title says.
So I want to make a simple(ish?) platformer- after toying around with some different things, I settled on this code: http://pastebin.com/340Mj2k9 (prgmDELAY is this but with R as the variable instead of A).
I want to add obstacles to it, though- I know I could do normal collision detection with this method but I want the obstacles to be randomly placed [say, Output(randInt(2,25),randInt(2,9),---)] and the only way I can think of that this would work is if I could detect something in a certain cell.
soo... yeah. What the title says.