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

Convert edgelists to GML

Is there a simple way to create a GML file out of edgelists (comma separated) using Python? This is the opposite situation of this question
kevin
  • 1,914
  • 4
  • 25
  • 30
0
votes
1 answer

GML: 3D vector to 2D point on screen

I have a script that, yes, takes 11 arguments. It converts the mouse coordinates on-screen to a 3D vector to be used for 3D mouse coordinates. It is perfect in accuracy. { var mm,dX,dY,dZ,uX,uY,uZ,vX,vY,vZ,mX,mY,mZ, width, height, tFOV; dX =…
Anixias
  • 45
  • 1
  • 8
0
votes
1 answer

Convert a 3D vector into 2 angles

This is the exact thing I want: 3D Vector defined by 2 angles except reverse. I want to go from 6 points (a 3D vector) to 2 angles (yaw and pitch. roll isn't necessary.) Can anyone help? I'm not using a programming language anyone would know. It's…
Anixias
  • 45
  • 1
  • 8
0
votes
1 answer

How to change sprite in gridpath movement

There are 4sprite that show left,right,up,down and i made movement used gridpath movement so i want to make like this if playerobject go left, change spr_left How to make it in gridpath?
이현우
  • 1
  • 1
0
votes
1 answer

How to make GameOver Screen in GML

Any ideas ? i tried to make it -- i kinda did - after you died the "gameover" text appeared "press R for restart" that worked just fine the text just did not dissapeared ! Thanks in advance
Kyon_2123
  • 13
  • 4
0
votes
1 answer

How can I change this raycasting algorithm to not go diagonally?

// Arg0 - Map, Arg1 - X, Arg2 - Y, Arg3 - Distance, Arg4 - MaxDistance var xx,yy,dist, x1, y1, dir, maxdist, obj, res, map; map = argument0 x1 = argument1 y1 = argument2 dir = argument3 maxdist = argument4 dist = 0 do { dist+=1…
Steffan Donal
  • 2,244
  • 4
  • 24
  • 47
0
votes
1 answer

Game Maker - How do I create homing effect for a projectile?

I'm trying to make a homing projectile for my bullet hell game and I'd need to be able to calculate the angle between the target and projectile relatively to the projectile's angle (0 degrees would be the direction the projectile is pointing). Right…
user4228573
0
votes
1 answer

Spring: How to avoid InvalidMimeTypeException in WFS request ("text/xml; subtype=gml/2.1.2")

I'm getting a response from a WFS service and the following error is returned. It seems this MediaType is not supported. org.springframework.http.InvalidMediaTypeException: Invalid mime type "text/xml; subtype=gml/2.1.2": Invalid token character '/'…
codesmith
  • 1,381
  • 3
  • 20
  • 42
0
votes
2 answers

This code in game maker won't work properly:

This code does destroy the object when its health reaches 0 but it won't add 5/7 to the global.xp variable. if rotem_hp > 1 and shop_13 = 0 { rotem_hp = rotem_hp -1 } else { if rotem_hp > 1 and shop_13 = 1 rotem_hp = rotem_hp -1.5 if rotem_hp <…
TamirGali
  • 1
  • 1
0
votes
0 answers

Collaborative pathfinding - rigid shape troops staying together while travelling

That's my first question here. Please advice me. Even little help is relevant for me. I'm having trouble thinking of an algorithm about pathfinding. But not normal. There are plenty of algorithms for single units trying to find each other. But what…
TheTobruk
  • 17
  • 4
0
votes
1 answer

Game Maker Studio: DoSet :: Invalid comparison type

___________________________________________ ############################################################################################ FATAL ERROR in action number 4 of Create Event for object eng_Global: DoSet :: Invalid comparison type at…
SteTrezla
  • 3
  • 5
0
votes
0 answers

Currency converter with database reading from external files

I have a programming problem that I need to solve. I know how to do most of the things using separate applications like Excel to do the mathematical calculations or creating a Flash exe that will do a simple math conversion when a value is entered…
Cxtroen
  • 1
  • 1
0
votes
1 answer

GML -> check for a colliding instance's variable, then do action

I've been trying to do some GML scripting but got totally stuck at some point. I want enemies to attack my main character but without overlapping. So, I would say. //enemy is moving left-to-right... if place_meeting(x+1, y, enemy){ //if there's a…
Fran Cano
  • 667
  • 1
  • 9
  • 18
0
votes
1 answer

Storing A Facebook User's Game Data Game Maker

I've been trying to figure out how to store a user's data into a database without much knowledge or documentation and surprising enough there's a lot of problems coming up, so I was wondering if anyone know of some good guides on how to store game…
Ivatrix
  • 31
  • 1
  • 11
0
votes
1 answer

Game Maker Password Verifier

How Do I make one flag that checks if: is_valid_length, is_valid_letters, is_valid_digits, is_valid_at are all true? also How Do I make it only Display correct at the end and not you must follow the rules at the end. if i take put "output_msg ="You…
user3215990
  • 53
  • 1
  • 1
  • 11