Alright, experts (or non-experts who can solve my problems).
I've created a test file and I have an issue. I've looked through my codes over and over and over again trying to find out what's wrong with them, and haven't found any particular problems (though I haven't even *tried* to get the energy meter to work). For some reason the animation for the health bar doesn't work properly, and the character doesn't register hp loss. There are other things I want that I've tried multiple codes for that just don't seem to work, so I'm listing those as well. If anyone can take a look at my file and figure out what's wrong I'll be extremely grateful! Once I've got these bug fixes I'll be able to start working on the real game - I'll be able to use the codes in the PlayerTest.ged as an example for my work.
Here's what I want:
1. When the player collides with certain actors (in this test it's only a meteor), he will lose 1hp (I can change this later depending on the enemy, obviously). When hp reaches zero, it will play the explosion animation that I have set up, and at the end of that animation, the game will end (haven't made any special game over effects for that yet, but I will soon - it'll eventually enter the main menu or restart from the last save point). Whenever he loses a health point, however, I would like for the damaged sequence (1;6;) to play for two seconds. During those two seconds he should be unable to collide with enemies and obstacles - nor should he be able to fire bullets! I tried CreateTimer for that but it didn't work (don't have much experience with Timers apart from the DelayTimers in Python logic bricks). Since this is the playtest, I'm using it to represent the first level. In the first level your character will start out with only 5hp. You can collect pickups as you go about the levels in order to upgrade your ship and increase its hp.
2. Ammunition... I think I deleted the bullet actor, but I was having so much trouble with ammunition that I just gave up on it. There should be about a 1 second delay between bullet fires, and each bullet fire should subtract 1ep (Energy Points) from the Energy Meter (the blue bar beside the HP). Had *so* much trouble and frustration with this.
3. If someone could let me know how to do this... I tried over and over, but I think my problem with this is stemming from my problems with hp in general).
Since "hp" is basically "upgrading" the Prototype, this means that your character's ship should *visibly* upgrade. So I created multiple different sprites - one for each upgrade. If someone can tell me how to change the frame of the animation based on the hp, that would be very helpful. I'd like to accomplish this.
That's three things... hope I was detailed enough. Anyway, let me know if you have a solution and post the fixed .ged file! Thanks, guys! Hope you like my graphics, too!