I have a simple driving game where to road moves from left to right to simulate drving, and you just have to stay in the road. but theres a problem!Attachment 96323
As you can see there, when the backcolor is set to 'Transparent' it ignores the fact that there is a road ahead of the form, and stays with the form backcolor of green. And when i set the backcolor to 'Silver' which is the same color as the picturebox road to avoid this problem, obviously when the car is off the road, it has silver going around the car.
What I am asking, is...
whether there is a way to fix this problem so the car picbox recognises that theres another picbox behind it...
or whehter theres another function that can replace the picturebox road, like any other feature i could use instead of a picturebox for the road which the car would recognise....
Thanks for the help if you give it, im still quite new to VB if you've seen my older posts, this is only my third game and they're all very simple.
As you can see there, when the backcolor is set to 'Transparent' it ignores the fact that there is a road ahead of the form, and stays with the form backcolor of green. And when i set the backcolor to 'Silver' which is the same color as the picturebox road to avoid this problem, obviously when the car is off the road, it has silver going around the car.
What I am asking, is...
whether there is a way to fix this problem so the car picbox recognises that theres another picbox behind it...
or whehter theres another function that can replace the picturebox road, like any other feature i could use instead of a picturebox for the road which the car would recognise....
Thanks for the help if you give it, im still quite new to VB if you've seen my older posts, this is only my third game and they're all very simple.