Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
HALFRATS PS4

1up bonus for high scores.

Recommended Posts

Anyone got any information on how to program it so once you obtain a certain amount of points you get an extra life? I have my players lives limit figured out I'm just trying to figure out how to add resources to my "lives" every 10,000 points or so. Thanks in advance.

Share this post


Link to post

I think I don't understand the problem.

Is this not a simple matter of monitoring the variable that is holding the score, on variable changed fire a test and comparison and when its over the special bonus amount run a chain that adds one life and runs only once?

Share this post


Link to post

Interesting problem. Unfortunately I can't think of an easy way to solve this. You really have a couple options. The first is to not use the score but instead do kills, this would be easier. Create a resource called "kills" and also set it on the his. Now create a demon proxy and select "on demon death" add 1 to the resource. Also create a counter with whatever amount of kills you want to earn the player an extra life. Now select the counter and put "on count reached" and give one to your player lives resource. Also make sure the counter resets on reached. That's the easy and probably the most efficient way.

If you really want to use the actual score there are a few ways to do it. Now I'm not 100% sure if this will work or if there is a better way but it's the first thing to come to mind.

Create a player proxy. Also create a timer with something reasonable like 5 seconds (don't make it appear on hud). Also create a Boolean called "Award Life" set to false by default.

Now, set the timer to start on player spawn. When the timer is finished have it test the Boolean. If true then award player a life and set Boolean false, for true or false set the timer again (may have to use loop here not sure).

Now use the player proxy to set "on score reached" and set Boolean true. You have have to set several of these on scored reached proxies depending on how much points a player can get.

That is my idea.

Share this post


Link to post

Thanks man actually just using the player proxy to add a life works by itself. I just hooked it up to my lives variable. I set it at 300 points to test it and every 300 points I obtained I got an extra life.

Thanks

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×