Destructable Landscapes

Blitz3D Forums/Blitz3D Beginners Area/Destructable Landscapes

Your program always draws an oval at the wrong place. There are two reasons for this:

1. The x,y coordinates you pass to oval() are for the top-left corner. If you want the oval centred, you need to subtract half the width and height from its origin.

2. Much more importantly, you aren't subtracting the background image's offset as I explained in my last post. Exasperating the problem is the fact that you're using AutoMidHandle True and positioning your background image arbitrarily: the image size is 1152,684 and you're positioning its midpoint at 512,350 - this means you have an offset of -64,-82.