• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

[Solved] Fill grid with objects from first click and while dragging mouse

Xer0botXer0

Senpai
Solved

===
Hi guys,

so Im trying to replicate draw_rectangle in a way, my intent is to build "rooms" surrounded by walls.
The wall tiles start where the player clicks mouse_x,mouse_y stored in a variable and ends where the players mouse current is.



I cant figure out how to do this. :/

Each blue 'cell'(those within the 'rectangle' is checked to see if there's an instance there, then creates one if there isn't, or removes one when a cell moves out of the blue rectangles area.
 
Last edited:
Top