Scripts Collection for GameMaker: Studio 1.4

$0+
2 ratings

A bunch of scripts I have created, for various different purposes. I will add more scripts as I make them. Some of these script are also used in my engines and examples. You get both the individual scripts as text files, but also an extension for easily installing all the scripts you need! (The "Scripts Collection" file)

Using GMS2? Check out https://blesshaygaming.itch.io/bhg-utils

  • equals(val1,val2,[val3],[val4],...,[val16]);
  • has_parent(obj,parent);
  • unstick_from(dirs,obj,[max move length]);
  • numeric_springing(value, velocity, target value, damping ratio, angular frequency, time step);
    http://allenchou.net/2015/04/game-math-more-on-numeric-springing/ and http://allenchou.net/2015/04/game-math-precise-control-over-numeric-springing/

  • map(value,from low,from high,to low,to high,[clamp?]);
  • insert_separator_commas(val);
    (like this: 1,000 and 1,000,000,000)
  • backgrounds_parallax(vind,bind1,[bind2],[..],[bind8]);
  • instance_place_all(x,y,obj);
    instance_position_all(x,y,obj);
    collision_circle_all(
    x,y,rad,obj,prec,notme);
    collision_ellipse_all(
    x1,y1,x2,y2,obj,prec,notme);
    collision_line_all(
    x1,y1,x2,y2,obj,prec,notme);
    collision_point_all(
    x,y,obj,prec,notme);
    collision_rectangle_all(
    x1,y1,x2,y2,obj,prec,notme);
    undefined
  • box_collision(x,y,obj);
    box_collision_all(
    x,y,obj);
  • sprite_mirror(hor,vert);

  • lines_intersect(x1,y1,x2,y2,x3,y3,x4,y4);
    Test if line 1 (x1,y1,x2,y2) intersects with line 2 (x3,y3,x4,y4), and returns the intersection point as a scalar value for line 1.

  • sw_laser(x1,y1,x2,y2,w1,w2,c1,c2,a1,a2,a3);
    Draw a laser from (x1,y1) to (x2,y2), with a core width of w1, and a glow width of w2. c1 will dictate the core color, and c2 the glow color. a1-3 is the alpha from the center out. Star Wars. Woo!

$
I want this!
Copy product URL

Ratings

5.0
(2 ratings)
5 stars
100%
4 stars
0%
3 stars
0%
2 stars
0%
1 star
0%
$0+

Scripts Collection for GameMaker: Studio 1.4

2 ratings
I want this!