Hi guys...
I would like to change the speed of the event, because 6 is too slow for me.
I tried adding the following line of code: (in set move route of the event)
@move_speed = 7
But it does not work xD
Thank you for your replys ^^
I would that the event moving much faster.
With RPG Maker settings, the standard speed is not good for what I want to create.
Does anyone have a solution?
I tried a bit on the forum but I found only setting to change the character speed in the database.
Can you give an example on what exactly you want to do?
There might be other ways around it, because as said the speed 6 is already high. (and you did set the frequency to max as well? because even on maximum speed a low frequency will result in missed steps slowing down)
I have this strings in my code:
# Velocidade do movimento do inimigo
Enemy_Speed = {:normal => 2, # normal -> velocidade normal do inimigo
:search => 3, # search -> quando o inimigo estiver te procurando
:chase => 3} # chase -> quando o inimigo estiver te perseguindo
(changing these parameters, however, change the speed of all the events...)
I, however, would change the speed only a single event, because I have to do a scene where my character escapes by a fast monster...
that is not an answer to my question - I asked what you want to do (in game terms) not how you want to do it (in programming terms).
you don't understand my question. Why do you want to set the speed higher? what part of your game doesn't work with that highest setting?
Because that speed is usually really high - if it isn't high enough for you, I would like to find out why it isn't high enough - there might be lag slowing down your game, and in that case it would be better to remove the cause for the lag than only fighting its symptoms.
If you really need different speeds in your game, then what kind of events have you already set to speed 1, 2, 3, ... that you need another speed above the existing ones?
From my experience (and in my game), speed 4 is the same as the player speed. Speed 5 is a little higher, and speed 6 is way faster than the player. Here's a video to show you what speed 6 should be doing. Notice how I have no chance to outrun it? (And yes, I had dash enabled).
So if a speed of 6 isn't enough then yes, you are having a lag issue, or you didn't set the frequency of the event to 5 too, and a higher speed will probably not help any, even if it can be done. Hence why we're asking what are you trying to do, because even speed 6 should be an impossible speed to ever outrun in the engine.
Now, if you really want to try a speed of 7 (or higher), try Yanfly's chase event script (for ACE, though I think there is an equivalent one for MV if you need it). I think you can set the movement speed in the move route for that event. If you get nothing faster than 6, then it is hardcoded into the engine and as far as I know you can't go above it.
Ok then i have another problem.. i use an ABS, it has the code i've shown up here. So i can guess it creates a conflict with the engine of RPG Maker itself as i've set speed at 6 but it remains 2 (look at script setting up there) At this point how can i fix it?
That would explain a lot. Which ABS? Can you post a link to where we could find the ABS script? It would be easier to fix it we have that as we can see what is going on with that code when it is called. As it is, I think there should be a way to change the speed of the single event to chase (based on the snippet you posted) to do what you are asking for, but that info will be elsewhere in the script, hence the request to see the link if that is possible.
From what I can see, the author forced the movement speed to 5 for all sprites, as there is this line:
if @equipped_weapon != nil
@move_speed = weight_speed if @move_speed != weight_speed
else
@move_speed = 5 if @move_speed != 5
Edit: Ok, scratch all that other stuff. I think I know what we will need to do what you want. Go to the line where they set up weight speed. Can find it by doing a CTRL+SHIFT+F for weight_speed. There's two of them. They should look like this:
def weight_speed
return 5 if @enemy.weapon.nil?
return 6 - @enemy.weapon.weight
end
And
def weight_speed
return 6 - @equipped_weapon.weight
end
The first is for the enemy, the second is for the player. We'll need to edit both of these to make it work right.
Edit the line that says return 6 - (whatever) to read 8 - (whatever). Also edit the line that says return 5 if @enemy.weapon.nil? to read return 7 if @enemy.weapon.nil? Then, increase all weapons weight by 2 in the script for weapons. Now, to get a faster enemy, either just give it no weapon, or give it a custom weapon of weight 1.
The only disadvantage I could see is the player might be really fast with no weapon now, but as far as I can tell this should work.
May have to make it more extreme than 8. I honestly couldn't tell much difference between an enemy at any of the speeds in the engine, so you may have to go as extreme as say 30 instead of 8, then add 24 to all weapon's weights.
If that doesn't work, I honestly have no clue, as it might mean the ABS engine wasn't coded well for fast monsters (maybe the author can help, if they still are around). All I can suggest is maybe making the monster event have a higher frequency than 5, if that is possible somehow?
Edit: This page has all the VXACE script commands, so you might be able to make it work with these. The formatting is off due to an update to the forum software, but the basic ideas should be readable: