Enreeper
Member
i have written a code that let you choose how fast it is and in wich direction it goes, but the object wont move.
here´s my code
obj_WallMoving
MiddleMouseRealesed:
move_direction=get_string("Type in the direction","")
move_speed=get_string("Type in the speed","")
Step:
///check if level is started
if global.playmode=1
{
if move_direction=("move_left")
{
direction=+45
speed=("move_speed");
}
}
here´s my code
obj_WallMoving
MiddleMouseRealesed:
move_direction=get_string("Type in the direction","")
move_speed=get_string("Type in the speed","")
Step:
///check if level is started
if global.playmode=1
{
if move_direction=("move_left")
{
direction=+45
speed=("move_speed");
}
}