I am making my game in which a character drives a car. So i used the character and also set the tileset well. Also then i play tested the game and game is going on well without any overlapping. But then i added a feature like when the player presses a action button near a garage he will turn into a car which is high resolution about 640 * 480 sized spritesheet. But after turning into a car some glitches like climbing in the wall and all is happening. Also it will stop at the place marked as wall only at centre
Does it mean that the spritesheet is too large to cause a glitch?
Can it be solved by script?
Any Other Error?
Also Sorry if there is already a post like this because i cannot find any solution
😅Wait.... 640*480 is the default screen size of RMXP...
Your car is covering the entire screen?
Or...at least maybe 1/4 of the entire screen? 😅
It can certainly causes some problem as each grid by default is 32*32 in RMXP.
(RMXP by default only check the collision on the exact grid coordinate (x,y). It does not extend to the entire image.)
The script can solve it but needs more information
Other solutions may include, place some invisible obstacle near the wall so that the car can't get too close to climbing on the wall.
(Use a character with the totally transparent image as an event. You can even decide if it is possible by check against a switch to see if player is in car)
No the Spritesheet is that size but the size of the vehicle must be about lesser than 1/4th of it. Also Thanks but is there any better solution
Yes, even that is too bigger than the default 32*32.
Thus, you may want to add some events as collision boxes to help RMXP to stop the car.
You need to consider that the collision system does not work for the size of the image, but for the 32x32 space that it is occupying on the map.
In other words, the car is not crossing the map, it is as if it were one of the big monsters of RTP, it is the "head" and "chest" that are taller than the other characters.
You will need to create a simulation with more than one map event.
There is no script that solves this.
Good luck.