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
18
votes
3 answers

Transfer layout from networkx to cytoscape

I want to use networkx to generate a layout for a graph. Is it possible to transfer this layout to cytoscape and draw it there? I tried to simply write a graph as import networkx as nx G =…
highBandWidth
  • 16,751
  • 20
  • 84
  • 131
15
votes
2 answers

Order of coordinates in geojson

I was testing rendering of data via GitHub in geojson format, because I wanted to use it for INSPIRE data. INSPIRE data are in GML 3.2.1 format. I've downloaded one of datasets from http://services.cuzk.cz/gml/inspire/cp/epsg-4258/ (which is in…
Meďák
  • 361
  • 1
  • 5
  • 12
12
votes
2 answers

When I have two orientation quaternions, how do I find the rotation quaternion needed to go from one to the other?

I'm using quaternions in my game, and I'm wondering how, when I have two orientation quaternions, I can get the rotation quaternion needed to go from the first one, q1, to the second one, q2. I'm self taught, so there may be obvious solutions…
Sindre
  • 337
  • 2
  • 3
  • 8
8
votes
1 answer

GameMaker Studio 2 collaboration between windows and osx

So I've been working on a game with a friend and we've run into a continuing problem with the .yyp file. At first we had the .yyp file under git control but whenever one of us would pull down the the other's changes the game wouldn't be able to run…
Sparkmasterflex
  • 1,837
  • 1
  • 20
  • 33
5
votes
2 answers

TDD and unit tests, GML Game Maker Language

I'm super n00bs to GML and TDD. I would like to practice test driven development and unit tests to Game Maker Language, GML. Is it possible since the GML is event driven? I've not had the fortune of finding many examples or tutorials on how to…
Onizuka
  • 431
  • 1
  • 4
  • 14
4
votes
1 answer

How to access features of a loaded GML file in OpenLayers?

I seem not to be able to access features of a loaded GML file. I will use the basic example of OpenLayers to demonstrate what I want to do : http://jsfiddle.net/AUbZn/14/ var map; map = new OpenLayers.Map('map'); var wms = new…
Choumarin
  • 400
  • 1
  • 6
  • 16
4
votes
2 answers

Best java open source toolkit to visualize a GML fragment

I'm looking for a way to visualize a piece of GML I'm receiving. What is the best freely available java library to use for this task?
Jasper
  • 846
  • 7
  • 14
3
votes
1 answer

I want to know how transformed "a-(a%b) " to "a&(~b)" (snapping grid formula)

When I searching about Snapping grid function. Actually it is Tile Collide.(You maybe know I learning GMS2 because of tags..) It is not important for my question. Cut to the chase, I learned about this formula. pos.x - (pos.x % gridwidth) <- this…
JINU_K
  • 133
  • 7
3
votes
2 answers

Is it possible to read GML or KML files with Fiona?

I'd like to know if it's possible to read/write GML files (or even KML files) using Fiona. Fiona documents don't specify what drivers we can use. I read some answers about the drivers that are avalaible but I still haven't figured out the right…
Daniel
  • 87
  • 1
  • 7
3
votes
1 answer

My GML shuffling array function is alway returning the same result

I'm trying to make a shuffling array function in GML. Here's what I tried, with argument0 being the array to shuffle and argument1 being the size of this array: ///Shuffling array function //argument0: the array to shuffle //argument1: the size of…
3
votes
2 answers

How does the binary NOT (~) operator work?

I am quite new to programming and i have been trying to learn some basic binary, but there is still one thing that i don't quite understand. It's the rules regarding the NOT operator. lets say i wan't to calculate this: 62&~29 62 = 111110 29 =…
3
votes
1 answer

Game would not run in game maker and it said "cannot use function/script name for a variable,using"motion_add"

this was happening to me as I tried to make an astroids game on game maker. I put in the code motion_add[image_angle, 0.2] and it was working fine then it said "cannot use function/script name for a variable,using"motion_add" if you guys could…
3
votes
1 answer

Does a ds_map destroy sub-maps?

I am trying to make a lighting system in Game Maker and to structure the system I want to contain all of the lights in a ds_map. I want that ds_map to be held inside a second ds_map that contains all of the lights in the system lights { "l-01":…
Ctl-F
  • 33
  • 7
3
votes
3 answers

Convert GeoJSON object to GML geometry

I have the following issue with transforming GeoJSON object into GML geometry object. First, on backend in request I retrieve GeoJSON object. Then I use jackson library to transform it into java object. This java object is FeatureCollection from…
tyomka
  • 459
  • 2
  • 5
  • 14
3
votes
1 answer

Accessing custom instance variable from other instance object

I basically have this: Obj1 Create event: health_total = 50; health_current = health_total; health_text = instance_create(x,y-10,obj_health); // Object to show health of an instance object health_text.origin = self; // Assign an 'origin' variable…
Andrius
  • 5,934
  • 20
  • 28
1
2 3
21 22