So i have o_window, and it is a window of inv screen and the selecting box in my inventory.
now i have this code in step event.
This is creating my selection box on xinv and yinv that i set in create event.
By pressing down i want to move that box by 25 by creating a new box and deleting an old one.
Whats my problem?
When i press down key all works fine, the cursor goes down when theres an option under and wont move when menu ends (the isel var)
But when i press up arrow it teleports above yinv var and stucks there, i cant move it anymore.
Whats wrong with it?
now i have this code in step event.
Code:
if (global.inv_true = 3)&&(draw = true) {
with instance_create(xinv,yinv,o_Windows){image_xscale=5 image_yscale = 0.36}
draw = false
}
if (down_true = 1) && (isel <= 3){
yinv += 25
with (o_Windows){instance_destroy()}
draw = true
isel += 1
}
else
{
if (up_true = 1) && (isel >= 1){
yinv -= 25
with (o_Windows){instance_destroy()}
draw = true
isel -= 1
}
}
By pressing down i want to move that box by 25 by creating a new box and deleting an old one.
Whats my problem?
When i press down key all works fine, the cursor goes down when theres an option under and wont move when menu ends (the isel var)
But when i press up arrow it teleports above yinv var and stucks there, i cant move it anymore.
Whats wrong with it?