Hi everyone!
Hopefully this is the right place to post this. I am needing some help. I will try to be as thorough as possible on what I am trying to accomplish as well as my thoughts and processes that I have made thus far.
I am trying to make it to where the player can commit crimes. I have a line of sight script that determines if an npc can see the player committing the crime and if they report it. That isn't what I'm having trouble with, since i haven't properly made the functionality for this but I am more focused on the aspect of the spawning in of cops when the crime is reported. I have 6 switches, 3 for each level 1, 2, and 3, and 3 switches for the in between cool down period (when the cops can't see the player). I am only focusing on the wanted level 1 and the cool down switches. When the wanted level 1 switch is on, i am wanting there to be a timer that tells the player how long until cops arrive. For testing purposes i am only using a single cop.
I have a common event that has a picture being displayed for the HUD, that works fine, but for some reason I cannot seem to get the timer to work, for when upon reaching 0, the npc cop is supposed to appear. I tried using self switches, but I am doing something wrong, as i had a somewhat working function working last night, but the more i messed around with it, the more broken it became. I want the cop to appear from off screen near where the player was when the wanted level was activated, which i know uses the x and y coordinates of the player, but my knowledge on how rpg maker uses these functions isn't much.
So i am willing to start over on the eventing process if anyone can tell me if they have an idea on how this can work, because the more i play around with it, the further away i get from what i am wanting. So in conclusion, if the player commits a crime, i have a little siren to indicate the actual wanted level, after a few in game seconds on a timer, a cop will appear near where the crime happened. If the player can stay out of the line of sight of the cop for another set amount of time, i want the cool down timer to start. If the player re enters the line of sight, the cool down switch and timer are turned off and the main wanted level is back in effect and the timer restarts. But if the player can stay in the cool down period for a certain amount of time, the wanted level goes away and the player is free to do what they want. I had a version of this kind of working but everytime i re entered the line of sight of the cop after the wanted level went away it would activate the cool down timer again and i got frustrated.
I hope someone can help me, it would be most appreciated!
Hopefully this is the right place to post this. I am needing some help. I will try to be as thorough as possible on what I am trying to accomplish as well as my thoughts and processes that I have made thus far.
I am trying to make it to where the player can commit crimes. I have a line of sight script that determines if an npc can see the player committing the crime and if they report it. That isn't what I'm having trouble with, since i haven't properly made the functionality for this but I am more focused on the aspect of the spawning in of cops when the crime is reported. I have 6 switches, 3 for each level 1, 2, and 3, and 3 switches for the in between cool down period (when the cops can't see the player). I am only focusing on the wanted level 1 and the cool down switches. When the wanted level 1 switch is on, i am wanting there to be a timer that tells the player how long until cops arrive. For testing purposes i am only using a single cop.
I have a common event that has a picture being displayed for the HUD, that works fine, but for some reason I cannot seem to get the timer to work, for when upon reaching 0, the npc cop is supposed to appear. I tried using self switches, but I am doing something wrong, as i had a somewhat working function working last night, but the more i messed around with it, the more broken it became. I want the cop to appear from off screen near where the player was when the wanted level was activated, which i know uses the x and y coordinates of the player, but my knowledge on how rpg maker uses these functions isn't much.
So i am willing to start over on the eventing process if anyone can tell me if they have an idea on how this can work, because the more i play around with it, the further away i get from what i am wanting. So in conclusion, if the player commits a crime, i have a little siren to indicate the actual wanted level, after a few in game seconds on a timer, a cop will appear near where the crime happened. If the player can stay out of the line of sight of the cop for another set amount of time, i want the cool down timer to start. If the player re enters the line of sight, the cool down switch and timer are turned off and the main wanted level is back in effect and the timer restarts. But if the player can stay in the cool down period for a certain amount of time, the wanted level goes away and the player is free to do what they want. I had a version of this kind of working but everytime i re entered the line of sight of the cop after the wanted level went away it would activate the cool down timer again and i got frustrated.
I hope someone can help me, it would be most appreciated!