help with shapes based game
Posted: Mon Jan 30, 2012 4:31 pm
Hello,
i am working on a game for my iPad that my young son can use.
i just need a little help with the logic, at the moment i can drag the shapes around the screen and i can drag them into the holes
but the issue i am having is that i can put circles into a square shaped box
what would be the best way to test that the right shape is going into the correct hole?
should i just use a if statement
if shape is wrong then display error else fill hole with shape.
any advice is welcome, i have worked though the online Game Academy lessons so if there is a bit that you think is relevant within the webinars please say and i will go back and re watch them
i am working on a game for my iPad that my young son can use.
i just need a little help with the logic, at the moment i can drag the shapes around the screen and i can drag them into the holes
but the issue i am having is that i can put circles into a square shaped box
what would be the best way to test that the right shape is going into the correct hole?
should i just use a if statement
if shape is wrong then display error else fill hole with shape.
any advice is welcome, i have worked though the online Game Academy lessons so if there is a bit that you think is relevant within the webinars please say and i will go back and re watch them