[SCRIPTING] [RGSS] [RMVX ACE] - HOW TO LET EVENTS MARKED AS "THROUGH" TRIGGER WITH EVENT TOUCH?
Posts
Pages:
1
Hello, I'm currently having an issue with my project where I have cars that go through the roads of the map. If you're in the way of the car and it hits you, it's supposed to trigger an event that sets you at a certain position of the map.
The issue with this, is that sometimes the car will derail from it's path-finding and slam into a building.
Marking the event as "through" fixes this bug.....but only when the player is moving. If the player is standing still then the car will just go right through. Doing the same logic here in a blank project causes nothing to happen at all. I came to a conclusion that with the script "VE Pixel Movement", which can be grabbed from here, causes this to happen.
tl;dr is there any way that I can have events marked as "through" still trigger using "Event Touch" without changing event to "Below player" or "Above Player" as it messes up the Z elevation of the cars? Thank you.
*Edited by Marrend. Reason: fixed youtube link.
The issue with this, is that sometimes the car will derail from it's path-finding and slam into a building.
Marking the event as "through" fixes this bug.....but only when the player is moving. If the player is standing still then the car will just go right through. Doing the same logic here in a blank project causes nothing to happen at all. I came to a conclusion that with the script "VE Pixel Movement", which can be grabbed from here, causes this to happen.
tl;dr is there any way that I can have events marked as "through" still trigger using "Event Touch" without changing event to "Below player" or "Above Player" as it messes up the Z elevation of the cars? Thank you.
*Edited by Marrend. Reason: fixed youtube link.
An evented solution involving a coordinate check as per this post might work. Like, you'd do a coordinate check with game-variables, then activate a self-switch when the coordinates match. At which point, run the teleport and message box, then deactivate the self-switch.
The one possible sticking point is how that pixel movement script might interact with the coordinate check, and how event positions are actually stored. If event positions are stored as pixel coordinates, then you might need to check against a range of pixel grid coordinates, rather than the more typical check of tile grid coordinates.
The one possible sticking point is how that pixel movement script might interact with the coordinate check, and how event positions are actually stored. If event positions are stored as pixel coordinates, then you might need to check against a range of pixel grid coordinates, rather than the more typical check of tile grid coordinates.
Yeah, I had a parallel process that checked for both the player's x and y locations and the events for flying enemies, and while it worked, they didn't trigger all the time and were kind of wonky. Wish there was a better way of going about it.
author=Marrend
An evented solution involving a coordinate check as per this post might work. Like, you'd do a coordinate check with game-variables, then activate a self-switch when the coordinates match. At which point, run the teleport and message box, then deactivate the self-switch.
The one possible sticking point is how that pixel movement script might interact with the coordinate check, and how event positions are actually stored. If event positions are stored as pixel coordinates, then you might need to check against a range of pixel grid coordinates, rather than the more typical check of tile grid coordinates.
Since this project uses pixel movement, this is not a great solution. Not to mention, the constant checking of more than 4 cars on the map would cause absurd amounts of lag. Thank you for throwing an idea out though - it means a lot! The only way to really fix this would be through script.
I know where to look for the fix now - but I need help with the scripting.
I need to enable event triggering with through. If someone knows where to look for that - let me know.
I need to enable event triggering with through. If someone knows where to look for that - let me know.
Pages:
1
















