GMLscripts.com retweeted
Been working on a small data structure library for GML, any other functions you think would be beneficial? 🤓 #gamemaker
It's time to discuss a new GameMaker Studio 2 style guide for the site.
gmlscripts.com/forums/viewto…
Massive Update - GMLscripts.com 3.5
gmlscripts.com/forums/viewto…
GMLscripts.com retweeted
How to convert 3D world coordinates to 2D GUI:
///@arg {vec3} position
var v = argument0;
var p = matrix_transform_vertex(matrix_get(matrix_world
),v[0],v[1],v[2]);
var cx = (p[0] / p[2] + 1) *.5 * view_wport[0];
var cy = (p[1] / p[2] + 1) *.5 * view_hport[0];
return [cx,cy];
Several collision list scripts from the site are now improved native functions in GameMaker Studio. The scripts will probably be removed in a future update, though they have some use in GM:Studio v1.4.9999.
Replying to @gmlscripts @smallbigsquare
There are even an algorithms that work in linear time but they are quite complex. See B. Chazelle and N. Amato.
GMLscripts.com retweeted
More edge cases solved. There are few left to fix. Mostly stable now. I have added triangulation method from the great @gmlscripts website.
Do you know other (faster) triangulation methods❔❔❔
#indiegamedev #gamedev #indiedev #gamemaker #gamemakerstudio #gml
Replying to @smallbigsquare
Yes. That script is not terribly fast. It uses a fairly naive randomized ear-clipping algorithm that was easy for me to understand. There are number of better algorithms based on monotone polygon decomposition. One even appears in Mark Overmars' Computational Geometry book.
Replying to @steampanic
Pretty similar, though it would be difficult not to be. :)
GMLscripts.com retweeted
Replying to @gmlscripts
I think we've talked about this once, but if it is merely a rectangle (or other pointy shape), transforming the coordinates yourself is going to be cheaper than building matrices and a texture swap - my recent post had an over-extended formula yal.cc/gamemaker-draw_sprite…
Replying to @YellowAfterlife
I keep forgetting about the very useful draw_sprite_pos() function.
Secret Script:
draw_rectangle_rotated()
pastebin.com/NuvnL4QF
This same technique can be easily applied to drawing of any kind.
GMLscripts.com retweeted
What version of GameMaker Studio do you use?
23%Studio 1.x Exclusively
10%Studio 1.x Mostly
22%Studio 2.x Mostly
46%Studio 2.x Exclusively
168 votes • Final resultsApologies for the site downtime. I cannot do any banking until Monday. The process can be expedited if you are so inclined. paypal.me/gmlscripts






