Fill the spaces

Hello,

I am currently trying to make an app that displays shapes, your goal is to fill in the space on the screen. All the space. Do you know how i can do this? So lets same you have many little triangle shapes, you would then need to fill the screen with triangles, your goal being filling up all the space and not letting any background to show. So what i basically want is to be able to say that if my objects don't fill up the whole screen it will subtract a number off points depending on how much space they did not fill up. How can i make that happen?

I can't figure this one out. If i am being a little vague, please notify me. :)

Thanks, help is really appreciated!

- Michael

- Hi Michael,

Sounds like a puzzle to me, there is some code in
the code exchange that may help you in the right direction...

http://developer.anscamobile.com/code/puzzleapp

Hope that help you ;)

Regards,
Larry
"Follow your Dreams!"

Thanks for your help, but that's not completely it. I wanted to be able to have shapes just like the puzzle but if you do not fill the whole screen it will subtract points therefore matching the proportional amount. I just want to know how i can do this.

Tricky one....if you have standard shapes like squares, rectangles, triangles, circles, hexagons etc, you could calculate their area (in pixels) using the appropriate maths, and subtract the total of all shapes in the playing area from the total available space.

Ths should work if the shapes are going to have a physical presence and are not allowed to overlap.

views:1663 update:2012/2/8 8:46:10
corona forums © 2003-2011