How to calculate surface area

micksolomicksolo Member Posts: 264
edited November -1 in Working with GS (Mac)
Hi, I'm trying to detect the area of an iPhone screen that is taken up by certain actors - basically my game involves filling up the screen with actors and I need to detect when that level hits say 75% of the screen filled.

Anyone got best suggestions on how I could implement this?

Thanks!

Mick

Comments

  • rlehmrlehm Member Posts: 320
    Figure out the "y" of how much you feel is 75%

    Add in the actors a rule

    Timer (so they can drop past the y)

    If actor 'y' = or > than 'y' amount

    Game over

    This is probably not what you want, but figured id give it a shot.
Sign In or Register to comment.