ACM Video Game Design Forum
July 31, 2010, 12:33:19 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: New Forum for ACM Video Game Designers!  Make an avatar with size 184 x 184.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: BIG UPDATE PLZ READ  (Read 478 times)
Strifex
Newbie
*
Posts: 24



View Profile Email
« on: October 30, 2009, 12:42:46 PM »

Add this update MainGame file and tell me if it works for you. (It should)


We now not only have health bars.  But the Obamas can punch each other and reduce each others health!!!!!

YAY WE HAZ A GAME! lol
Logged

"People Have hope, because they cannot see death standing behind them"
-Bleach vol.2
Strifex
Newbie
*
Posts: 24



View Profile Email
« Reply #1 on: October 30, 2009, 07:28:48 PM »

Update part 2

Added Some comments to Main Game and game now Crashes when a health bar is emptied.

My updated MainGame.cs file is attached.
Logged

"People Have hope, because they cannot see death standing behind them"
-Bleach vol.2
MindAbyss
Administrator
Sr. Member
*****
Posts: 126



View Profile Email
« Reply #2 on: October 30, 2009, 07:30:19 PM »

Update part 2

Added Some comments to Main Game and game now Crashes when a health bar is emptied.

My updated MainGame.cs file is attached.

Awesome that you got it to work, I have to wait for someone that has XNA on their computer to download it for me to check it out though.
Logged
BigV
Newbie
*
Posts: 21



View Profile Email
« Reply #3 on: November 03, 2009, 01:51:34 PM »

You had an idea, but it doesn't work. If you walk past the purple Obama then the detection doesn't work correctly. We will try to come up with a solution.

Edit: The code has been fixed. Here it is.

//Sketchy Collision/Proximity Detection
            if (mainGame.currentPlayers[0].x - mainGame.currentPlayers[1].x <= -120 || mainGame.currentPlayers[0].x - mainGame.currentPlayers[1].x >= 120)
            { collision = false; }
            else { collision = true; }

Happy Coding ^_^
« Last Edit: November 03, 2009, 02:01:32 PM by BigV » Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!