I’ve come pretty far with the game I’m doing currently and it’s scheduled for release on mobile Q4 2015. We are about to have it tested by a lot of outside people to see if we are on the right track, but there is one thing that I really need your help with!
You are a space dude flying around and a black hole starts to rapidly expand. You have to outfly it even though you can’t but for the sake of the game you try. In order to survive longer you can collect fuel cannisters and have to avoid asteroids. When you collect enough fuel you can “jump ahead” some to delay the inevitable of the black hole catching up as it increases in size. When you fly you build up a multiplier to get more points. When you jump ahead you lose the multiplier but keep the points.
What I need help with is the black hole itself. Currently it only moves forward given a time delay but I need to give the player a sense of speed so that it looks like they are actually getting away from it. But I am not sure how to do this. Currently the black hole will keep “expanding” (really just move closer to you) and if your fuel is below a certain threshold it’ll stop moving until it detects your fuel is low enough in which it will expand again until you reach the needed fuel or you get hit by the black hole and die. However we need a way for the player to look like they are speeding away from the black hole if they are playing well enough. I really need your help with this part!
To give you an idea, here is what the game is like right now:
As you can see you can’t really “escape” but we need to give the player the feeling as if they can.
Here is where it starts. When the player first spawns and starts flying:
The Timeline you see above:
It calls the event called “IncreaseSpeedLimit”. It looks like this:
Basically it sets the new threshold for when it’s allowed to move forward. If it reaches 2 then it’s impossible to escape it. So every tick I check the following:
The Speed Multiplier on the ship ranges from 1 (normal speed) to 2 (double speed).
Any help on how I’d go about making the player able to sorta make the black hole “Go backwards” when they fly fast enough and otherwise make the black hole catch up faster?