calculating game area

ralfouzanralfouzan Member Posts: 9
edited November -1 in Working with GS (Mac)
can i calculate the remaining unused space in my game? if yes how can i do it ? for example if my background actor is a white space and in the game the player will actors to the background and i want the available space to be calculated each time the player adds the actor to the background?

Comments

  • CaptFinnCaptFinn Member Posts: 1,828
    are you talking about 320x480 = 153600 pixels and a actor 100x100= 10000 pixels your remaining space being 143600 pixels? Or are you asking if there is a max amount of megabites you can use in a game?
  • ralfouzanralfouzan Member Posts: 9
    what i mean is for example if the total space of my background is 100% and i want the game to end when the remaining space is 5% ,, like if the player added an actor "block" that occupies 25% of the background space i want to be able to calculate that the remaining space is 75% then if agin he added another block of another size it will calculate again until the remaining space reaches 5%
  • CaptFinnCaptFinn Member Posts: 1,828
    sounds like you have a idea for a unique game. But Im thinking thats where arrays come in handy. I think
  • ralfouzanralfouzan Member Posts: 9
    thanx,,
Sign In or Register to comment.