Okay, so, a game project I am working on is almost ready for its next release. The only feature not currently implemented to the new content is a racing minigame that the player can participate in for cool rewards, including some key items for later end-game stuff I have planned. I already have the bulk of the basic mechanics figured out, and they seem to work as intended. However, there is one thing I have yet to nail down.
For context, I plan for there to be 5 racers aside from the player, and a grand total of 5 difficulty settings. Very easy to Very Hard. You know, the usual spread. The idea is that NPC racers will be more likely to move faster on higher difficulties.
The way I want to handle this is by having a variable be randomized periodically, and the racer associated with that variable must wait a number of frames equal to that randomized variable between each step. I may even apply this limitation to the player using the same variable range as on normal difficulty - assuming I can find a way to make that feel good to play. the variable range will be larger and start at a higher number on lower difficulties. My hope here is to simulate different speeds and the fluctuating pace of an intense, competitive race without just flipping around the event speed setting. The differences in speed that creates are too drastic to feel natural or particularly compelling.
For clarity, each racer has its own variable for modifying its speed.
I looked it up before, and I was directed to use a script call, but it does not seem to work as I want. Namely, in that it doesn't work at all.
I have attached a couple of screenshots showing how my events are currently formatted. They are only active when a race is in progress, and all are parallel processes.
P.S: While not related to this particular issue, I am also having an issue where the racers just stop if the player gets too far away. If anyone knows of a way around that off-hand, maybe point me in the right direction?
TL;DR - Need Events to wait before taking their next step based on a random variable that's changing a bunch. Not presently working. Help, please.
For context, I plan for there to be 5 racers aside from the player, and a grand total of 5 difficulty settings. Very easy to Very Hard. You know, the usual spread. The idea is that NPC racers will be more likely to move faster on higher difficulties.
The way I want to handle this is by having a variable be randomized periodically, and the racer associated with that variable must wait a number of frames equal to that randomized variable between each step. I may even apply this limitation to the player using the same variable range as on normal difficulty - assuming I can find a way to make that feel good to play. the variable range will be larger and start at a higher number on lower difficulties. My hope here is to simulate different speeds and the fluctuating pace of an intense, competitive race without just flipping around the event speed setting. The differences in speed that creates are too drastic to feel natural or particularly compelling.
For clarity, each racer has its own variable for modifying its speed.
I looked it up before, and I was directed to use a script call, but it does not seem to work as I want. Namely, in that it doesn't work at all.
I have attached a couple of screenshots showing how my events are currently formatted. They are only active when a race is in progress, and all are parallel processes.
P.S: While not related to this particular issue, I am also having an issue where the racers just stop if the player gets too far away. If anyone knows of a way around that off-hand, maybe point me in the right direction?
TL;DR - Need Events to wait before taking their next step based on a random variable that's changing a bunch. Not presently working. Help, please.