Questions tagged [game-maker-dnd]

For questions involving the DnD (Drag and Drop) GameMaker programming language.

Filter by
Sorted by
Tagged with
0
votes
1answer
134 views

Way to prevent jumping pieces

I have a chess game and I have all the movement for the pieces coded but all of the pieces, not just the knight, can move over the top of the other pieces. What would be the least intrusive way to ...
0
votes
1answer
49 views

Why is the pawn not moving?

I have a set of moving chess pieces and am now trying to implement the rules to prevent them from going anywhere. The pawns use this code to move: (Sorry for the blurriness, the IDE did it ...
0
votes
1answer
47 views

Multiple If Operations at Once

In my game, I want to have it so that if a chess piece tries to move farther away than a certain distance it won't work. To do this, I need it to have an if statement that works between two numbers, ...
0
votes
1answer
56 views

Way to Prevent Stacking Pieces

I have a chessboard with all the black pieces that move with this code: I found that when I move the pieces, they will stack on top of each other. How can I prevent this? I have since changed the ...
0
votes
1answer
49 views

Way to Reset Varible After Collision Resolution

I have some code that, if a player is in contact with the wall, prevents the player from moving. Is there any way with this code to reset the collide variable, and if not, what would be the simplest ...
1
vote
1answer
64 views

How to Make Different Instances of an Object Have Different Sprites

In Game Maker, I am trying to make it so that three instances of an object have three different sprites. Using DnD, what would be the optimal way to do this? If it helps, the three instances are ...
0
votes
1answer
136 views

Easiest way to make a button in Gamemaker Studio 2

I want to make a menu for my title screen where the user can click on the option they want. The only way I can think of doing this is by making an object that checks if there is a click and then ...