Questions tagged [gml]

Game Maker Language (GML) is an interpreted scripting language developed for use with a computer game creation application called Game Maker. Use this tag only for questions about language features, or requiring code in Game Maker Language. For questions relating to Geography Markup Language, use the [gml-geographic-markup-lan] tag instead. For Graph Markup Language, see the [graphml] tag.

Game Maker Language (often called GML) is an interpreted scripting language developed for use with a computer game creation application called Game Maker. It was originally created by Mark Overmars to supplement the drag-and-drop action system used in Game Maker. However, in the latest versions, all the drag-and-drop actions translate to GML rather than being separate from it.

The scripting language lacks some of the features of its parent language JavaScript, as well as of other object oriented programming features. The language also lacks proper data types and overloading.


Resources

Books


Related Tags

329 questions
1
vote
1 answer

Game Maker Studio 2 get_string deprecated

I am trying to ask the user for a name to put into my highscore table. I do not want to use get_string_async because then it adds a the name and score before the user has even given a name, however get_string does not work because it is…
Jojo197
  • 15
  • 5
1
vote
1 answer

Parsing GML with PHP

I'm attempting to parse the XML output of a GeoIP API with PHP: This is the Hostip Lookup…
MarathonStudios
  • 3,983
  • 10
  • 40
  • 46
1
vote
1 answer

Plotting lineArcs with turf.js that don't match up with their surrounding geodesic strings

Background We are supplied with some AIXM data (an XML based superset of GML) which describes polygon areas on a map as a mix of GeodesicStrings (a list of coordinates) and ArcByCentrePoints (a centre point coordinate with a radius, start bearing…
Jerome
  • 577
  • 1
  • 3
  • 18
1
vote
2 answers

sprite_index not working gamemaker studio 2 (GML)

I have a small script that changes the sprite index when I press a certain key. if (key_right) { sprite_index = playerRightSpr;//<------------- image_speed = 1; //| } …
1
vote
2 answers

GameMaker studio 2. Player Knockback

trying to create a player damage indication when a collision with an enemy occurs. I used this code within a collision event of the player object: direction = point_direction(other.x,other.y,x,y); hsp = lengthdir_x(6,direction); vsp =…
1
vote
3 answers

How to use Intellisense from other languages in the current language

I want to use GML's Intellisense in Lua language mode, but I tried multiple methods but they are all invalid. I also tried to use DefinitelyTyped, but it only works fine in JavaScript and TypeScript, can't be used for other languages.
LiarOnce
  • 11
  • 2
1
vote
0 answers

zoom in view game maker

For some reason I can't zoom in. view_xview[0] = view_xview[0] - 100; view_yview[0] = view_yview[0] - 100; view_hborder[0] = view_xview[0] / 2; view_vborder[0] = view_yview[0] / 2; While using these, the zoom event works fine but it zooms to the…
1
vote
1 answer

Game Maker Array Not Initializing

I am trying to make a main menu using an array in Game Maker, and am using the following code to initialize it in the "Create" event. For the life of me I cannot figure out why it isn't working. I am getting the error: Error at line 1 pos 5:…
1
vote
1 answer

Gamemaker studio 2 matchmaking

I just finished building a MOBA-like game in node.js for the web platform. Now I am planning on redoing it as an actual game in Game maker studio 2 while fixing some bugs and adding some new features. I ran into a problem a while back, however, I…
Cyberboy1551
  • 345
  • 1
  • 13
1
vote
0 answers

GML 3.2 to Turtle RDF

What would be a valid Turtle RDF representation of the following GML 3.2 description? 3512838.613 5516087.399 126.135 Is there an official GML 3.2 ontology that…
Vertexwahn
  • 7,709
  • 6
  • 64
  • 90
1
vote
0 answers

SDO_UTIL.TO_GMLGEOMETRY throws srsname which starts with SDO: in stead of expected EPSG:

We have code which creates a wfs request in the program which is called to get some data from open data. In this code we use oracle procedure SDO_UTIL.TO_GMLGEOMTERY to complete request with necessary gml data. used query is something like: select…
1
vote
1 answer

UnicodeDecodeError while reading networkx GML

I am trying to read a GML file using nx.read_gml('test.gml') I checked the networkx read_gml() documentation. It is said that The GML specification says that files should be ASCII encoded, so when I write the GML, I use the…
twfx
  • 1,664
  • 9
  • 29
  • 56
1
vote
0 answers

GameMaker Studio 2 Click-Drag Tile Selection

I would like to implement a simple way to select a section of a tilemap, though I'm stuck on the math of updating the selected area as you drag. I spent about 12 hours reasearching and trying different things to see if I can get this to work…
Searous
  • 11
  • 4
1
vote
2 answers

Why is there a "ghost" of the sprite stuck in the background? GMS 2

So I'm making a game in game maker studio 2 and it's kinda like football but with flying. I just made the movement and jetpack controls and last night it was working but when I booted it up this morning, this happened. Normally when you move, you…
Cyan Coder
  • 37
  • 8
1
vote
0 answers

onActivityResult not being called from recognizer intent (java,gml,extension)

I'm making a speech to text / text to speech extension for android with gamemaker: studio and altho the text to speech works perfect,( check my android apk out and you will see text to speech- perfect, speech to text- broken) getting speech to text…
Wraithious
  • 385
  • 2
  • 11