Icon

Random Sprite Point

GamerXP

You must be logged in to obtain assets

Description

FREE LINK v1.0.0 (non-commercial usage only): https://goo.gl/7fIQ0a

If you're going to use this in commercial game - buy it please.

This system allows you to quickly find uniformly distributed random point inside any sprite. Why would you want to find a random point inside a sprite? Usually, for effects like burning, different auras, etc.

Usage is simple:

  1. Call global initialization script.

  2. Add sprites to the system.

  3. Call script that will return random point.

FEATURES:

  1. High performance of random point script.

  2. Quick setup.

  3. Multiple options for generating area data, that's used to find random point.

  4. Cache system to save previously generated area data.

  5. Two-step area generation script, that will allow to recreate existing area data must faster.

  6. Draw function for previewing.

For area data generation, it's recommended to use YYC since it improve performance a lot. After data is generated, cache system can be used instead for quick loads.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.0.2. Published December 2, 2015

  • Separated system object from demo object - it should be more clear what you need, and what you do not. Also, I placed all parsing to draw event since it latest GM version parsing don't work properly from create events.
  • Fixed cache loading function - it somehow crashed in latest GM version for no good reason. It did it when it tried to merge string.. also, extenstion removing built-in function got broken as well.. gosh...
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait