Download

download yymps

Introduction

With this script, you can make particle and GPU collisions. It means that you can check any kind of mask with GPU, including particles.

How to use it?

It’s very simple.

  1. Prepare a surface containing objects or particles to check for collision. It must be the same size as the camera view.
  2. Prepare an empty surface that is the same size as the camera view.
  3. execute the following code:
gpu_collision_start(surface_contains_masks,empty_surface);
  1. apply the camera you using and draw the sprite which you want to check collision for.
//applying camera
camera_apply(view_camera[0]);
//draw code
draw_self();
  1. gain the result of the collision check.
var _collision = gpu_collision_end(surface_contains_masks,empty_surface);

It’s all!

join your GPU collision check!

I have some great suggestions!

oh, that's good! Please tell me what you want to be added to this library. you can contact me by the mail:

[email protected]