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.
289
questions
-1
votes
0answers
7 views
game maker studio 2 http POST issue
I am trying to send a text through the http_request() function and I have this issue
https://i.stack.imgur.com/7ku5v.png
0
votes
0answers
17 views
How to merge a custom AndroidManifest with the main one in Gamemaker Studio 2
I wrote a plugin for GMS2, and it requires some manifest entries too.
Usually, the sections (2 & 3) in this image ManifestEntries work for most cases. But if we wanna add some attributes to the ...
0
votes
1answer
30 views
collision failing in gamemaker 2.0
Here's my collision code. (I got it from FriendlyCosmonaut but added the debug message for my own benefit):
// COLLISION CHECK
//Horizontal
if (place_meeting(x+moveX,y,obj_solid)){
repeat(abs(...
0
votes
1answer
37 views
Use leidenalg and igraph to find cluster and then output gml file
import leidenalg as la
import igraph as ig
G = ig.Graph.Famous('Zachary')
partition = la.find_partition(G, la.ModularityVertexPartition)
ig.plot(partition,vertex_size = 30)
ig.save(G,'ttt.gml')
...
0
votes
3answers
35 views
How to get access to the instance variable within the Create event?
I have this code in GML2 Create event
inst1 = instance_create_layer(100, 100, "Instances", obj_genus)
inst2 = instance_create_layer(200, 100, "Instances", obj_genus)
with inst1 {
...
0
votes
2answers
72 views
How to make PNG (8-bit Indexed Colors) using buffers? Getting “compression header fails checksum”
how are you?
I'm trying to make a PNG from scratch on Game Maker Studio 2 using Buffers, but I'm getting some errors using pngcheck:
File: [01;37mtest.png[0m (85 bytes)
chunk [40;33mIHDR[0m at ...
0
votes
1answer
25 views
mp_grid_path not being followed, object flies off or doesn't return to passive path
have an mp_grid setup that works during the aggro state just fine, but the passive state only works when I add && (path_index == -1) to the if (mp_grid_path(...)) statement. However, this ...
2
votes
3answers
129 views
how to keep specific node in networkx
I'm currently studying my college special topic. My problem is i can remove all the node i don't want but i want to keep some specific node. Here's how i do it.
1.read gml into networkx
2.using this ...
0
votes
1answer
48 views
GameMaker Studio 2 - Object changes to different sprite without programming (GML)
While programming my game, I came up on a significant issue. I am trying to create a tactical game, and I created grid cell objects for it. In the object's step event, it has the following code to ...
0
votes
1answer
78 views
How to extract data from GML file
I have a text file and would like to extract the <gml:pos>73664.300 836542.700</gml:pos> from it. More precisely I would like to get the GPS coordinate system [73664.300 836542.700] from ...
0
votes
0answers
96 views
Parse GML as geopandas dataframe
I'm trying to parse the following gml as geopandas dataframe
gml = '<gml:MultiPolygon srsName="EPSG:4326"><gml:polygonMember><gml:Polygon> <gml:outerBoundaryIs><...
0
votes
2answers
35 views
why are objects clipping behind each other?
I'm making a script that sorts the depth for my objects by prioritizing the y variable, but then afterwards checks to see if the objects that are touching each other have a higher depth the further to ...
0
votes
0answers
26 views
What is the difference between gml:exterior and gml:interior for polygons?
I am using GML and I am trying to define polygons. When modelling polygons, however, you have to decide if you want to model one exterior ring or multiple interior rings (http://www.datypic.com/sc/...
0
votes
0answers
4 views
Can you refer an IndoorGML viewer for 2D data for OSX?
I am modelling buildings in IndoorGML with 2D geometry on OSX. I want to know if my GML-files are correct, so I am looking for a viewer. I tried all viewers that the IndoorGML website recommends, but ...
0
votes
1answer
29 views
Is there any way I can pick a color of a surface using H.S.V?
if mouse_check_button_pressed(mb_left) && pickMode = true
{
hue = surface_getpixel ( artSurface [ pages ] , mouse_x , mouse_y );
saturation = surface_getpixel ( artSurface [ pages ] ,...
0
votes
2answers
34 views
could someone tell me why everything vibrates when the camera in my game moves?
I'm not sure why, but for some reason whenever the camera in my game moves, everything but the character it's focusing on does this weird thing where they move like they should, but they almost ...
0
votes
0answers
59 views
Open Layers 4 - geojson and gml output
I am using the following WFS service dummy URL : http://nile.apl.washington.edu:80/geoserver/wfs -> Layer Name : 'GOA-ON Assets' to implement adding WFS layers to my application using open layers.
...
0
votes
0answers
24 views
Extract tag from GML via OGR Python
I'm trying to extract all attributes of a GML via Python/OGR. So far i have managed to read all attributes but one of them is stored as a xml tag and have no idea of how to get it out.
The gml element ...
0
votes
1answer
31 views
Tile Collision In GML
I am making a game based on the game AZ on the website Y8, and I am having problems with tile collisions.
the player moves basically by giving it speed when up is pressed, then rotating left or right.
...
1
vote
2answers
178 views
Game Maker WASD and arrow keys smooth rotation?
How can I make smooth rotation using WASD or arrow keys? I saw some exaples, but they all use mouse. I surely want to use WASD or arrow keys. I really hope someone can help me with this.
This is my ...
0
votes
0answers
17 views
Can somebody give an authentic example of a gml file containing multiple polygons and CircleByCenterPoint?
The application that i am working on has multiple polygons implemented already. I want to integrate multiple Circle By Center Point with the existing format.
Attached image is an example of multiple ...
0
votes
2answers
72 views
How do I fire four bullets in four directions (0°, 90°, 180°, 270°)?
I'm following this game tutorial for GameMaker Studio 2 by FriendlyCosmonaut which sacrifices readability for better understanding which I don't mind really, but I'm stuck at the four bullets part of ...
0
votes
1answer
33 views
Player character won't go in front of buildings
Ok, so I managed to get all the buildings to stay in place, but now for some reason, the player character won't go in front of the buildings.
I tried switching the places in the code where the if the ...
0
votes
0answers
18 views
Buildings' depths are acting wonky for some reason
my depth system is acting super weird for some reason. My player character's depth works perfectly. when I walk behind a building the character actually goes behind it! however, for some reason the ...
0
votes
0answers
40 views
GML: instance_create not working, object is not being put into the room
I'm trying to make a game where spikes fall from the sky and the player has to move from side to side to dodge them. The object I'm trying to get to move down from the top of the screen is named ...
0
votes
1answer
140 views
GMS2 - Why am I getting this syntax error?
I made an inventory system(other is the drop) and here is the pickup code
// pickup
found_in_inv = false;
for(var i = 0; i < ds_list_size(global.inv); i++){
if(global.inv[| i]...
0
votes
0answers
20 views
I am wondering if there is a good tool or framework to analyze gml file for call graph analysis [closed]
I made a call graph using Androguard to analyze the .apk file. It makes a GML file format and I want to analyze it through "yEd", but the call graph is so complex that the computer is easily down and ...
0
votes
1answer
201 views
Networkx Impossible to read my gml file : input is not ASCII-encoded
I wouldlike to read my gml file with networkx.
import networkx as nx
G = nx.read_gml('test.gml')
but I have always the same error :
networkx.exception.NetworkXError: input is not ASCII-encoded
I ...
0
votes
1answer
127 views
Issue with game over room
I am currently making my first Game Maker Studio 2 game in GML (the space rocks one from the tutorial series in the yoyo YouTube channel) and I don't know why but when I tried to run the game it didn'...
0
votes
0answers
65 views
How to use shaders to make parts of an object transparent based upon contact with another object?
I am trying to make a game in GameMaker 2 where objects become transparent depending on the object behind them. I currently have it so I am just checking each step (within the object to become ...
0
votes
0answers
14 views
Restarting a room upon death in GML
I just created my player characters death object, making it so when he comes into contact with an enemy, he is replaced with the death object. However, when he died, the screen does the transition but ...
0
votes
1answer
46 views
A elegant solution to this repetitive code?
I have this code, but it just looks like there should be a way to do it in fewer lines/code.
if (TargetX > Origin[0] + Range) TargetX = Origin[0] + Range;
if (TargetY > Origin[1] + Range) ...
0
votes
1answer
348 views
XBOX One gamepad detected in slot 0 but no input detected in Game Maker Studio 2
I am following along this udemy course and in the section where we implement a very simplistic gamepad support, I am unable to make my XBOX One controller work as demonstrated in the lecture. Here is ...
0
votes
3answers
90 views
i can't use (point_distance) to kill any enemy nearset my hero GMK
I have a problem with a code in the Game Maker program
I make a little game that has a path that the enemies walk on and put heroes on his side and when the enemy approaches him he turns to him and he ...
0
votes
1answer
36 views
GML: Is there an easy way to see the output of a line of code?
I've been struggling with some code lately (see: Why are my bullets flying in weird directions?), and I've begun to suspect that I've I've made an error in my math or the GML functions Sin and Cos ...
0
votes
0answers
32 views
Why are my bullets flying in weird directions?
I've been making a twin-stick shooter with GML for a while, and I've gotten to the point where I want the ship to shoot bullets. I wrote the code below, with the intention of making the fire fire at ...
0
votes
1answer
131 views
Jump buffer not playing nice with variable jumping
I'm having an issue where my player object always jumps to maximum height when jumping because of my buffer. This is my first game, so I'm playing around with Heartbeast's engine. I figure I'm missing ...
0
votes
1answer
413 views
Undefined symbol: _OBJC_CLASS_$_SKStoreReviewController when testing Gamemaker Studio 2 Project
I am attempting to test my Gamemaker Studio 2 Project through Xcode as usual, but since updating to Xcode 11.2.1 my game compiles and tests fine on a simulator device but whenever I attempt to push to ...
0
votes
1answer
481 views
Diagonal moving on slopes | GameMaker 2
I'm trying to implement moving on slopes in GameMaker Studio 2.
It's working most of the time but sometimes I'm getting stuck between the slopes and the ground when trying to move upwards.
The code ...
1
vote
1answer
224 views
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 ...
0
votes
1answer
426 views
How to convert a tile layer into an object for depth sorting relative to the player?
I'm essentially making a Stardew Valley clone, using tile sets and tile layers to draw the background of each room. I have a 'Parent Depth Object'. Each child of this object (NPC's, crops) has its ...
1
vote
1answer
163 views
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 ...
2
votes
1answer
82 views
Game Maker Studio 2 - How to give one input priority over another when controlling the same object?
I'm trying to control an aiming object in a game I'm starting on with two different inputs, one is the left stick so you can aim while moving, and one is the right stick for more precise aim, but I'm ...
0
votes
1answer
25 views
How to fix: code not running on certain frames
I have been trying to make my character shoot a projectile on a particular frame of animation. However, sometimes it works and other times it just ignores creating the projectile.
I've tried using ...
0
votes
1answer
75 views
Best way to do object collision?
I'm trying to do wall collision for objects and I've followed a tutorial that offers one method of doing collision.
This is the tutorial: https://www.youtube.com/watch?v=yZU1QJJdxgs
Currently, if ...
0
votes
4answers
865 views
How do I create a random item spawner with no repeats?
I am currently working on a rogue-like game in GameMaker Studio 2 and i would like to have an item spawner where no items are repeated.
I have tried multiple different ideas of what i think would ...
0
votes
1answer
248 views
How to achieve 3D low-res effect in GameMaker:Studio 1
I'm coding a 3D FPS-type game in a popular game engine called GameMaker:Studio 1.99.44. I'm trying to achieve a low-res "pixelated" effect, for example like this:
Example of this effect in a game ...
0
votes
1answer
4k views
"help to fix ' error: unable to read property list from file: info.plist
I added Admob Google extension in to my Game Maker 2 project, when I try to test it on xcode for iOS, I am getting the error from xcode : unable to read property list from file: ...
Tried to fiddle ...
1
vote
1answer
56 views
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...
/// ...
0
votes
2answers
281 views
Player sticks in a wall while moving on slope up
I made a simple slope movement in my GameMaker game.
Everything works fine except if player goes up slope and its speed is high enough not to have time to react to the collision code it gets stuck in ...