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

style: color and strokewidth in Openlayers?

I tried some ways but cant seem to find the proper one, How can I ad a style to this layer: var line_1 = new OpenLayers.Layer.Vector("Line nr 1", { projection: map.displayProjection, strategies: [new…
Altin Ukshini
  • 235
  • 5
  • 14
1
vote
2 answers

Methods of simplifying code (to many IF statements)?

I'm generally new to this style of coding (mostly working in VBA before) and I could use some suggestions. I have my code typed out and it works exactly how I want it to as far as I can tell but it seems like it must be lengthier than it needs to…
1
vote
1 answer

Making Algorithm to Find Most Move Efficient Solution in a Complicated 2d Puzzle Game

I'm trying to make an algorithm of any sort that can find the solution with the lowest move count. I'm coding in GML using GMS2 and it's for a game that I'm making myself. This is a picture of the most simple level The reason I call it a complicated…
1
vote
2 answers

Game Maker not recognizing new variables

Hey I'm doing some basic programming in GML and I was trying to use a variable in one object to effect another. Pretty simple I just used: [Obj_PlayerManager.Create] Dmg = 1 [AsteroidParent.Collision(Obj_Laser)] Hp -= Obj_PlayerManager.Dmg But when…
1
vote
1 answer

Unable to read or fetch nested elements/text from the GML file using Python

I am trying to read the .GML file and want to fetch the co-ordinates from the tag. I am not able to do it. Input file:
Manish Shegokar
  • 101
  • 1
  • 10
1
vote
1 answer

How to determine given GML version information?

Given a GML, how to determine its version? For eg, i have below GML. Is there any way to determine if its version 1, 2 or higher? I don't see any version information as such. So what is the accurate way to determine the same?
Helena
  • 444
  • 2
  • 15
1
vote
1 answer

OpenLayers Select Feature with control points

I have a OpenLayers.Layer.GML layer build with GeoJSON data given by MapFish. When I select his features control points are displayed and they let me edit the shape of the features. Well I don't want them! And I don't know how they appeared or…
mokagio
  • 16,391
  • 3
  • 51
  • 58
1
vote
1 answer

OpenLayers 6.5.0 not parsing GML 3.2 with multiple featuretypes

I can't get openlayers 6.5.0 to parse a WFS 2.0.0 response in GML 3.2, when the response contains multiple featuretypes. It' works as long the response contains only one featuretype. I've put together a simple example with fake responses, as they…
mschenk
  • 31
  • 4
1
vote
1 answer

Does networkx.readGml() function store the widths and heights of the nodes? If it does, how can they be accesed?

I have a gml file in which nodes have non-uniform dimensions. I read the file with the following command: G = nx.Graph(nx.read_gml('test.gml')) I am not sure if this command reads the widths and heights from the gml file and whether it stores them…
Mobi Zaman
  • 605
  • 1
  • 6
  • 19
1
vote
1 answer

Distance to edge of ellipse given a vector

I've been trying to figure this out for a while and haven't found the answer. Given: Height of ellipse, Width of ellipse, Xposition of vector, Ypostion of vector, Direction of vector. Find the distance to the edge of the circle Here's a…
1
vote
1 answer

How to save a GameMaker 2 Project to a Git repo?

So, I'm an ace with git. I've used it with the CLI every single day for years to manage hundreds of software development projects. But now comes the "GameMaker 2" IDE... and it is beyond me, how the hell I'm supposed to integrate it with GitHub?…
Wulf
  • 379
  • 1
  • 6
  • 16
1
vote
1 answer

Linebreak (#) every X characters

How to make a script that inserts # character every x character? I already tried to make this by creating a script down below. This is my script, but it doesn't work, somewhy... /// string_linebreak(str,w) var str, w, p, l; str = argument[0]; w =…
younyokel
  • 327
  • 2
  • 15
1
vote
1 answer

Deleting tags from a string

I'm trying to remake the script below so that it does not draw text without the tags [a=...] and [/a], but just delete them from the string. I made this script but it removes everything inside the tags, removes that between the tag and between the…
younyokel
  • 327
  • 2
  • 15
1
vote
1 answer

How to fix a bug with 'image_xscale' in GameMaker Studio 2?

I'm making a game in GameMaker Studio 2, and I have a problem. When object turns to left or right, he was puching forward. But he has to be in the same position like the first time. I tried to use this code: /// @description vaksciojimas // You…
1
vote
1 answer

Transforming GML with XSLT

i was trying to figure out what is wrong with this piece of code, but, after 4 hours, I give up! I tried a lot of different solutions here on stackoverflow and from arround the web, bot none of them worked. All i'm trying to do, is to put…
CubicsRube
  • 71
  • 1
  • 3
  • 10