i get a randomblock, the shape, and use its name to feed to the move function so it knows at which cell locations to increment, and eventually redraw, therefore moving the current shape
k
karelpeeters
08/20/2017, 8:42 PM
That's the wrong way to think about it, the physics engine and the renderer shouldn't have anything to do with the name of shapes.
To them a shape is just a collection of blocks, nothing more. So just pass the list of offsets.
o
oday
08/20/2017, 8:43 PM
but each shape as different offsets..
it’s just my inability to grab a reference to the current block is what is causing the issue
how to know who is currently the object being moved on the screen
its represented by where its sitting (or starts off sitting) on the screen, its individual offsets
k
karelpeeters
08/20/2017, 8:44 PM
Is a shape just a shape or an entity with a position?
o
oday
08/20/2017, 8:44 PM
there are no shapes, just its positions
you’re right though, was thinking about it wrong, I got my clue