Hi all,
So in my project, I have an isometric map that has its tiles mostly randomly generated.
Each of the tiles has information about it stored in a ds_grid.
These things are accessed by an enum:
enum TILE
{
SPRITE, //sprite a tile should use
Z, //tiles height
SUBIMAGE...
I am currently making an inventory and have come across a weird little problem.
In the game you are able to pick up items from the inventory and move them around, everything works fine until you try to click outside the ds_grid while having an item picked up.
Basically the problem occurs when...
Greetings; this is my first post here.
I've just upgraded from Legacy to GMS2.3+. I'm lovin' it. Currently learning the ropes and fixing some stuff that was broken when porting my project. Previously, I used a custom .csv loader to boot up the ds_grids in the game but decided to move on to the...
I am redoing this game without creating tile objects and only rely on the data structure for movement and other stuff. At the moment, I have 'invisible' grids where it generates the values needed.
My issue is for those values to 'drop' down the grid if the struct variable struct_DATA = noone...
I'm building a level editor for a game. I place 16x16px wall objects on the ground (that do their magic to add tiles etc to make them look correctly isometric) and when that's done and I hit F5, it saves it to a grid that I export as a file and import into the actual game itself. My code that...
Hello again. This problem is related to a previous topic I opened (https://forum.yoyogames.com/index.php?threads/cropping-an-objects-sprite-with-code.92396/)
Most of the suggestions levied there did not solve the issue and I could not wrap my head around it, so I torched most of that code and...
GM Version: Studio 2
Target Platform: Windows
Download: see below
Links: n/a
Summary:
Hello, i decided to share my inventory ive done "inspired" by vagante
(if you dont know vagante, its a good game too you should try it)
the inventory is small sweet and simple, ill be only focusing on the...
Hi, I'm making Binding of Isaac clone (it's set in hell (of course), so the regions are named "circles") and I need help with organizing the travelling between rooms. I'm not sure I've made it right (ds_grid could be used as a table, right? Right?), but that's how it goes:
ini file - create...
GM Version: GMS2
Target Platform: HTML5
Download: https://ladyluck.itch.io/hybrid-bomberman-level-generator-for-game-maker-studio-2
Video:
Summary:
I just recently discovered how to use diffusion limited aggregation to create random maps and I wanted to apply it to a bomberman style level...
So in my code I have a few calls to ds_grid_set_region, when ran on windows these work exactly as expected, however running on html 5 they will only set a region up to the smaller of the width and the height. The only way I can get my code to work properly is If the ds_grid I'm working with is a...
Hello,
I've created an inventory ds_grid for my game and a script that must get ds_grid as an argument, but it gives me an error:
ds_grid_height argument 1 incorrect type (undefined) expecting a Number (YYGI32)
at gml_GlobalScript_AddItem (line 18) - for (i = 0; i <...
GM Version: ALL (the code makes use of ds_grid accessors but that is not a requirement)
Target Platform: ALL
Download: N/A
Links: N/A
Summary
This tutorial series shows how certain calculations can be done using ds_grids.
Each tutorial focuses on a specific calculation or algorithm.
Tutorial...
Is there a way to create objects into a room that are stored inside of a ds_grid?
Instance_create_layer or depth doesn't like when I try and place a something other than a direct object and gives me an error.
I can draw my ds_grid when I have sprites stored in the draw event, but I imagine when...
Hi All,
I am working on a project that involves populating a ds_grid (jigsaw puzzle) with a number of maps (which contain info about the tabs and slots of the puzzle pieces). Ideally, the grid and map would be initialized, and then nested for loops iterate through the x and y coordinates...
When the player leaves a persistent room for another (pause menu in my case) does the room end event trigger, or the instance destroy event trigger?
These events currently destroy ds_grids in some of my objects, and that would break the room if I return to it (by unpausing)?
Hi there guys, iv'e been strugling with a problem for a week now and i could really use some help, for some context im trying to implement field of view using the ray casting method (iv'e adapted a method from roguebasin to gml), everything is working fine except one thing, so i keep a ds_grid...
I am looking for ways to organize data to save.
I have a save/load system using JSON files and it appears to work nicely. Now, I am looking for ideas to organize data.
I have several "controller" objects that controls parts of my game and done this way for organizational means.
Could I place...
Hello! I'm making a tile-matching game (Tetris). After a piece fall down and collides for a second its' underneath collision rectangle, it creates "Dead tiles" so to say ( gets converted into 4 "dead" objects).
//In one of the pieces Triggered alarm
if collidedU = 1
{
global.Morph = 1...
Hi there. I am using a ds_map in order to store a number of ds_grids. The idea is that groups of objects fill out their own shared grid as you collect them, and when you have collected every object within a group, it uses the grid to create a number of jigsaw pieces, then destroys the ds_grid...
Hello, Game Maker Community!
I ran into problem with smooth terrain generation. Initially a had something like on the image below.
This terrain was generated with using ds_grid_set_region and ds_grid_set_disk in random positions of ds_grid
I should say, that I've tried using Perlin's noise...