Event Touch problem with "Free Movement v0.87" Script by GaryCXJk ( VX ACE )

Hey, guys!

As the title suggests, Im having a problem with the "Event Touch" function when using the "Free Movement v0.87" Script by GaryCXJk which can be found here (You can't try the demo cause the file is corrupted for some reason):

https://area91.multiverseworks.com/rmvxa/scripts/gameplay/free_movement

No matter if I set an Event on "Approach" or "Custom: Move towards Player" the Event trigger doesnt activates.

It looks like this:


The Event just wanders around the Player but it doesnt get activated unless I move towards it OR if I set the Event on "through" which isnt a good option since I want enemy encounters on event touch and with "through" they can run accross water,walls and so on. BTW: When I disable/remove the Script it works just fine, so it really is a problem with this Script.

I know Victors PixelMovement doesnt have this issue but for compatibillity and some other reasons I need to use GaryCXJk's Free Movement Script.

I hope you guys can help me out 🙂

Greetings,

DerKIAS
Just to make sure that it isnt a simple obstacle.
Is the Event on "Event Touch" or on "Player Touch" ?
Because it needs to be on Event Touch if the Event shall activate when it runs into the Player.

Edit: My fault, your Script has its own Collision Boxes, iam not a Scripter, maybe someone else knows something?
Hey! 🙂

Yeah the events are on "Event Touch"^^ Here is a screenshot of two events where one is set on "Approach" and the other one is set on "Custom: Move towards Player"
Spoiler: Events
events.png

And here is also a screenshot where you can see the collisionboxes:

Spoiler: Collisionboxes
collisionboxes.png

Maybe im doing something wrong or I have to do something with those collisionboxes to make it work but I've tried everything without success. I've made a fresh project and it works as it should but as soon as I put the "Free Movement" script in there it doesnt work anymore.
Your screen size is bigger than the map size. That WILL mess up many scripts which rely on the screen co-ordinate of character objects.
You can see how the collision boxes are not in their correct place, right? That is because the map is smaller than the screen size.

Increase the map size for all of your maps which are smaller than the screen to avoid future problems caused by this.

I don't know if this is the cause of your collision issue, but you will run into many display issues if you don't re-size your maps later.
I couldn't figure this out myself since the demo file was corrupt.
Your screen size is bigger than the map size. That WILL mess up many scripts which rely on the screen co-ordinate of character objects.
You can see how the collision boxes are not in their correct place, right? That is because the map is smaller than the screen size.

Yeah you are right but that was just for testing purposes. I usually use correct sized maps 😉 But thanks, now I know why the collisionboxes are so weird on that map. ^^

I also figured it out myself by looking a bit more on the instructions of the script itself and testing, testing, testing...
Somehow the solution was to decrease the collisionbox size of the "Event Touch" events. I dont know exactly why, but it works now 🙂
My best guess is, that with bigger collisionboxes the events are being prevented from "touching" each other.. because when I increase the collisionbox size the "Event Touch" event just wanders around the player like it cant reach him.

Anyways, thanks for your help guys!

Original thread: https://forums.rpgmakerweb.com/threads/event-touch-problem-with-free-movement-v0-87-script-by-garycxjk-vx-ace.87435/