Original Source
- Original title: Pixel Perfect Collition
- Original author: Ramiro
- Original date: October 24, 2015
- Source thread: https://forums.rpgmakerweb.com/threads/pixel-perfect-collition.46723/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Releases (RMMV)
Summary
Pixel Perfect Collitionversion 1.0.1 What is this? This script is a scripter's tool to allow to check pixel perfect collitions between pixels. It's actually just a snipper than adds two methods to the Sprite's prototype. What is Perfect pixel collition?
Archived First Post
This script is a scripter's tool to allow to check pixel perfect collitions between pixels.
It's actually just a snipper than adds two methods to the Sprite's prototype.
What is Perfect pixel collition?
Is a way to check if two sprites "Touch" each other..
You can see an example here:
Do you see? they are not touching each other (even if both rects are touching)
If they touch, you'll know.
Downloads:
- From My Dropbox.
- From My Github.
Bugs and limitations
At the moment it is rather simple, it doesn't check if the sprite's scale has changed or rotated sprites.
Those are features for next versions.
1.0.1 - Now it has to be a little faster, because it calculates less times per check.
Faq
How to use it?
In short terms:
spriteA.collidesWith(spriteB, tolerance=1); // means alpha 1 or bigger triggers touchTerms of Use
As almost all of my plugins, there are released under CC0 or Apache 2.0.
If you are worried about, don't worry you can use them in both commertial and non commertial games.
In this case, under Apache 2.0, it means you have to say 'thanks Ramiro' on a readme or your credits.
You can choose CC0 if Apache 2.0 license isn't available in your country.
Hope you enjoy.
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadLicense / Terms Note
spriteA.collidesWith(spriteB, tolerance=1); // means alpha 1 or bigger triggers touchTerms of Use As almost all of my plugins, there are released under CC0 or Apache 2.0. If you are worried about, don't worry you can use them in both commertial and non commertial games. In this case, under Apache 2.0, it means you have to say 'thanks Ramiro' on a readme or your credits.
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...