Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Works-In-Progress (http://www.alice.org/community/forumdisplay.php?f=14)
-   -   Need help on this work-in progress game (http://www.alice.org/community/showthread.php?t=5481)

chaoslemon 11-20-2010 02:41 PM

Need help on this work-in progress game
 
1 Attachment(s)
This game that I am currently making is a vertical shooter (like raiden, touhou, etc.) Everything seems to be going well despite some lag issues with the shots, but the main concern I have is that there is no way I can make it so as soon as either the player's health or the enemy's health reaches 0 something happens. I tried making it so the camera moves off-screen because I can't seem to stop everything in it's place as soon as the either of the values reach 0. From that I decided to make the camera move away from screen so that they would still be moving, but the values don't change and they're off-screen from what the player sees. If anyone knows what the problem is please help. I have attached the file (ignore the story line haha).

Edit: I should mention the camera moves 30 meters up when you win, or 30 meters down when you lose. I think I'm just going to say "click the reset button to try again" without having to reset values via function and dummies. I haven't gotten the win or lose screens made yet but I will as soon as I get the camera to move as SOON as either value is 0.

zero00 04-10-2011 03:32 PM

Not sure if this helps
 
1 Attachment(s)
I like making shooter games too.
I modified your program a little. See if this helps

zero00 04-11-2011 04:21 PM

[QUOTE=chaoslemon;28707]Edit: I should mention the camera moves 30 meters up when you win, or 30 meters down when you lose. I think I'm just going to say "click the reset button to try again" without having to reset values via function and dummies. I haven't gotten the win or lose screens made yet but I will as soon as I get the camera to move as SOON as either value is 0.[/QUOTE]

Oh, I see now. What about a event that says....

//While player isnt dead

while (playerHealth > 0){
enemy attack Sequence
}

//This part assumes the player has died
world Restart?

The restart method sends everything back to their original positions and starts the game again.

after that, when the player dies,


All times are GMT -5. The time now is 08:31 AM.

Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.