|
Post by BiNMaN on Oct 30, 2014 11:59:34 GMT
PGD had a collectible block (not to mention platform on/off and conveyors), after being intrigued by a comment on facebook about creating a version of pac-man I realised that how would you do the dots?
fodder is out because it's essentially a solid wall, unless the ghosts could ignore them somehow sprites are out as there can only be 12 objects is a possibility but each dit would have to be an object and at 32 bytes per it could take a lot of memory (but could be doable)
|
|
|
Post by gabriele1969 on Oct 31, 2014 10:41:23 GMT
you could go the other way around: if your dots are custom blocks ( adot may be made of four custom blocks arrange in a 2x2 sprite-like fashion), you could putblock and empty set of block (2x2) over them so the dots would disappear...
|
|
|
Post by BiNMaN on Oct 31, 2014 14:21:07 GMT
I'd thought of that but the block seemed to hamper the sprite movement however I shall try again edit: this may just work
|
|
|
Post by BiNMaN on Nov 1, 2014 19:57:30 GMT
crud can't get it to work at the moment can't relate the players x and y to an appropriate line and column
|
|
|
Post by gabriele1969 on Nov 18, 2014 20:46:11 GMT
crud can't get it to work at the moment can't relate the players x and y to an appropriate line and column to do that i write: divide y by 8; divide x by 8; let line x; let column y; putblock..." multiply x by 8; multiply y by 8 (this last part is necessary to re-set y and x to their original values, otherwise your sprite will fly away) This will put a block using the top left corner of your sprite as the x y play a bit with these values (you can add 1 to x or y or both after dividing by 8; this will put your block a line or a column one line below or a column to the right of the original position; just remember to subtract that number from x, y or both before multiplying back by 8)
|
|
|
Post by BiNMaN on Nov 21, 2014 10:04:25 GMT
crud can't get it to work at the moment can't relate the players x and y to an appropriate line and column to do that i write: divide y by 8; divide x by 8; let line x; let column y; putblock..." multiply x by 8; multiply y by 8 (this last part is necessary to re-set y and x to their original values, otherwise your sprite will fly away) This will put a block using the top left corner of your sprite as the x y play a bit with these values (you can add 1 to x or y or both after dividing by 8; this will put your block a line or a column one line below or a column to the right of the original position; just remember to subtract that number from x, y or both before multiplying back by 8) dividing by 8 won't work as there is no way to round numbers up or down so that they can correspond to column and line coordinates for example 188/8=23.5 depending on movement left or right it would need to set the column to 23 or 24 but I can't see how that is possible, I've tried to use a counter that will only use putblock command as the sprite intersects exactly with a line and column position but I have failed miserably so far the obvious choice is to create 8k of objects, which I was hoping to avoid
|
|