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
2
votes
2 answers

How to freeze sprite animation on last frame?

I want to make a sprite in game maker that contains 5 sub images to stop when it reaches the last one how can I do this using code?
shrouk
  • 43
  • 1
  • 1
  • 10
2
votes
1 answer

How to tell if an object has been touch by the player in gml code

Hey am going to give an example of what am trying to do imagine that i have 5 circle sprites and in my gml code i want to do something like this if cirlce_1 was touch then you can touch circle_2 and if circle_2 was touch then you can touch cirlce_3.…
2
votes
1 answer

GML sprite direction facing issue?

Okay, I'm having problems with my sprites facing direction, I have so that: If i press the D key, the sprite will play the walking sprite and when i release it, it faces in the direction i was walking, HOWEVER when i'm walking left(A key), it plays…
Pitu
  • 97
  • 1
  • 1
  • 7
2
votes
1 answer

How to show choice in Game maker with gamepad functionality

I am working on a Dragon Warrior - type rpg game in Game Maker studio and can't figure out how to get a show choice option that doesn't use the mouse. I have setup the game to run completely with a gamepad, but when I am confronted with the…
2
votes
1 answer

GML Storing User Input

So I have been working on a program that ask the user to input a values and when the user exits the code by entering -99 its suppose to return the total Value of all the numbers and the average but I'm stumped My values keep getting overided by…
user3215990
  • 53
  • 1
  • 1
  • 11
2
votes
2 answers

Algorithm for Block-Matching Game Placement

So I'm working on a game that's similar in mechanics to Bejeweled--you know the type, where you swap adjacent tiles in a grid to match groups of same-type tiles together. So here's my question: if I have an MxM grid of tiles, and there are N…
Daniel Burnett
  • 69
  • 1
  • 1
  • 10
2
votes
1 answer

Set up PSGML Mode on Emacs 24

I am desperately trying to set up the PSGML/XML Mode for Emacs 24. I did everything according this explanation: http://www.lysator.liu.se/~lenst/about_psgml/psgml.html I did ./configure ./make ./make install after unpacking the latest package of the…
Simon Fromme
  • 3,104
  • 18
  • 30
2
votes
8 answers

Game Maker Language new line

I am writing a GML script and wanted to know how to make a message appear on the next line: ex. show_message("Hello" + *something* + "World") outputs: Hello World
2
votes
1 answer

UnicodeDecodeError for writing file

I know that this is a very common error, but it's the first time I've encountered it when trying to write a file. I'm using networkx to work with graphs for network analysis, and when I try to write into any format: nx.write_gml(G,…
Olga Mu
  • 908
  • 2
  • 12
  • 23
2
votes
1 answer

latitude/longitude info in a GML Bounding box

If, for example, we have bounding box as given below in gml: 42.943 -71.032 43.039 -69.856 Now, for the lower corner, which value…
umbersar
  • 1,821
  • 3
  • 24
  • 34
2
votes
3 answers

XSD schema target namespace

I'm trying to set up a new gml Feature schema however I think I'm misunderstanding something with the namespace. Heres my schema:
user143278
  • 43
  • 1
  • 5
2
votes
2 answers

How to upgrade from GML vector layer to VECTOR in OpenLayers

According to OpenLayers the Openlayers.Layer.GML is depreciated and not supported in ver. 2.12. I need to move to Vector layer, but I can't figure it out. In my previous version I have defined it as: //Locations and UnitLocations layer -…
Matej
  • 227
  • 1
  • 4
  • 11
2
votes
1 answer

postgis st_geomfromgml, what is wrong with my point?

In PostGIS 2.0 I try: select ST_GeomFromGML( ' 275466.0 565559.0 0.0 '); This gives an error: ********** Error ********** ERROR: invalid GML…
milovanderlinden
  • 1,124
  • 1
  • 12
  • 27
1
vote
1 answer

A tool to generate "model visitor" code from XSD

could anyone suggest some tools that generate code file for visiting models defined in XML schema? Ideally it should generate a streaming XML parser that reads input XML and calls methods like visitMyModelElement() once it finds MyModelElement. Then…
Remigijus Pankevičius
  • 1,052
  • 1
  • 12
  • 23
1
vote
2 answers

Create Silverlight Bing Maps Shapes from GML

So I have spatial data stored in an SQL Server 2008 database (zip codes). My frontend is Silverlight 4 and I can get the shapes from the WCF service to the frontend as GML. Is there any easy way to add them as shapes to the map without parsing the…
1 2
3
21 22