Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
sovr
16
Years of Service
User Offline
Joined: 2nd Jan 2010
Location: USA
Posted: 9th Jan 2011 04:54
Hello, I have been working on this game for some time and I have a big issue with the game. The game about you (the player) shooting objects aligned in a grid, when the bullet hits an object the texture changes. The thing I need to figure out is, when all the objects are shot at you should win the game... But I am having trouble doing that. Can anyone please help me! (Ps there 50objects in grid) thank you!

sov the game creator!
SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 9th Jan 2011 05:27
Well I would check for colision each loop if the bullet has collided set a variable in an array to 1 then check iff all the values = 1, hopefully you know how you would do those things, if not just say so and ill help you out
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 9th Jan 2011 13:46
You know that there are 50 objects, you know when you are changing their textures, so set a counter to 50 and every time you change a texture, decrease that counter. When it reaches zero, you're done.

Login to post a reply

Server time is: 2026-07-21 20:36:15
Your offset time is: 2026-07-21 20:36:15