Collision Detection

bomblord

Veteran
Veteran
Joined
Apr 13, 2016
Messages
87
Reaction score
11
First Language
English
Primarily Uses
Are there any built in functions I can use to find out if the player has collided with an event? I'm playing around with trying to do something and I need to be able to test for this.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,433
Reaction score
7,712
First Language
German
Primarily Uses
RMMV
there is no "collision" directly, the engine simply checks the grid coordinates of player and event - if they are on the same coordinates (or in case of touch triggers if they try to move onto the same coordinates), the triggers are activated.

If you want more help, you need to tell us what exactly you want to do instead of "try to do something".
 

bomblord

Veteran
Veteran
Joined
Apr 13, 2016
Messages
87
Reaction score
11
First Language
English
Primarily Uses
there is no "collision" directly, the engine simply checks the grid coordinates of player and event - if they are on the same coordinates (or in case of touch triggers if they try to move onto the same coordinates), the triggers are activated.

If you want more help, you need to tell us what exactly you want to do instead of "try to do something".
That's fine I'll figure it out.
 

bomblord

Veteran
Veteran
Joined
Apr 13, 2016
Messages
87
Reaction score
11
First Language
English
Primarily Uses
Me and @Skurge came up with a plugin to detect collision for certain car/streetlight events.
https://forums.rpgmakerweb.com/index.php?threads/player-event-barrier.76237/#post-716110

I can rework that character canPass alias for your situation if you indulge me on what needs to be done, or else if you are handy with javascript you might already know how to rework it.
Thanks for the help I could probably figure it out from there but I really just ended up scrapping what I was doing and am going with something else. I honestly wasn't incredibly invested in what I was doing and was basically just trying for fun to make something that I could have a character push around.

I seen something afterwards (I believe posted by you) that was infinitely simpler than what I was doing and kind of just was like "oh" and dropped it.
 

mogwai

1984
Veteran
Joined
Jun 10, 2014
Messages
875
Reaction score
591
First Language
English
Primarily Uses
RMMV

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Day 9 of giveaways! 8 prizes today :D
He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.

Forum statistics

Threads
106,040
Messages
1,018,476
Members
137,824
Latest member
dobratemporal
Top