I'm still a complete N00B with C2, but having fun learning al the same time. My question is this (after exhausting web search)...
CAN A SPRITE PASS THROUGH ANOTHER SPRITE WITHOUT COLLIDING WITH ITS EMPTY SPACE?
Example: I'm trying to create a top-down scroller game: e.g. Spy Hunter.
Sprite A = car (left & right controls)
Sprite B = road (which scrolls downwards)
Below is an image example of Sprite B:
Imagine: Sprite B, being the road... the edges are solid but the middle is empty (chequered) ... I want to enable collision with the car and road, but only collide with the solid edges.... hope that makes sense.
here is the game file.
I thought I might have been able to have two polygon shapes on either side, but sadly not.
Develop games in your browser. Powerful, performant & highly capable.
The problem here is the collision polygon, these occupying the entire block.
You can not have two independent collision polygons in the same graph, so you can use two objects or object tilemap.
Thanks Mirlas, back to the drawing board then
3 ways of doing this split the image and set collision fro each side. or create another sprite for border/edge of road.
or use tilemap to set collisions for edge of road with road as background image
see my example lambo racing.
which uses border sprite for edge of track.