Hello, excuse me for bothering me, I have a little problem and I admit that I don't really know if it is possible to get it resolved.
I wanted to work on a system where events teleport to different locations to cause damage to players.
To do this on each event I added an automatic trajectory with a script for movement that teleports the event from point A to then be teleported to point B of the level. If the player hits the event when he is on the same square, he receives damage.
The explanation and my test here is very simplified but in principle, the events must teleport in several different directions over a longer period of time in a synchronized manner in a predefined game space.
This works very well and the events all teleport at the same time as intended, the problem starts when the player starts to come into contact with one of the events, everything starts to go out of sync.
I know I'm not very good in general, and I only know some basic RPG Maker, but I have very advanced knowledge of coding, but my theory was maybe only when the event is activated, it must probably be frozen for a few frames which prevents it from moving and desynchronizes it.
You should know that at the very beginning each event made the character jump a little further, then I deactivated the "wait until the end" function, then to avoid time cuts I added to the places a script of another event which has the function to eject the character and give him damage. This helped reduce the desync, but it's still there and everything gets very broken very quickly.
So I wanted to know if this was something possible to possibly do? Or maybe my process is too complicated and maybe there's an easier way to accomplish this. Thanks in advance and sorry again for the inconvenience.
I wanted to work on a system where events teleport to different locations to cause damage to players.
To do this on each event I added an automatic trajectory with a script for movement that teleports the event from point A to then be teleported to point B of the level. If the player hits the event when he is on the same square, he receives damage.
The explanation and my test here is very simplified but in principle, the events must teleport in several different directions over a longer period of time in a synchronized manner in a predefined game space.
This works very well and the events all teleport at the same time as intended, the problem starts when the player starts to come into contact with one of the events, everything starts to go out of sync.
I know I'm not very good in general, and I only know some basic RPG Maker, but I have very advanced knowledge of coding, but my theory was maybe only when the event is activated, it must probably be frozen for a few frames which prevents it from moving and desynchronizes it.
You should know that at the very beginning each event made the character jump a little further, then I deactivated the "wait until the end" function, then to avoid time cuts I added to the places a script of another event which has the function to eject the character and give him damage. This helped reduce the desync, but it's still there and everything gets very broken very quickly.
So I wanted to know if this was something possible to possibly do? Or maybe my process is too complicated and maybe there's an easier way to accomplish this. Thanks in advance and sorry again for the inconvenience.