• 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!

GML Visual Issues in my pokemon battle DND

T

tyngu

Guest
So im trying to make a pokemon battle using Drag n Drop. But the thing is: i want to be able to open fight menu when the black cursor is on that position (FIGHT) and when id press the button Z. But i have no idea how to do dis.
1601926809138.png

Also i tried to do this: didnt work either
1601926874381.png
 

TailBit

Member
Can't you check if variable x and y is a specific number, if so then create the fight menu ..

You can make it have a variable for the position in its create event, maybe call it "pos"

After moving it then set the variable pos to (x==202)*2 + (y==202) in all of the direction events

That way pos will be the value 0 to 3

And you can check:
Code:
if space is pressed
if pos is 3
destroy trainer(or create the menu)
you might also want to disable controls of this menu if it some of the other menus exist
 
Top