Hi guys, im doing test to allow cursor to move up and down at char selection, my plan is when press Down, instead of pallet change, move 20 times to right, when press UP, move 20 times to left (since current select have 20 chars per row)
So put it inside of main() of keyall.c
if i do:
So put it inside of main() of keyall.c
it works, instead of change pallet, move char to right one time, but i cant repeat it,if(openborvariant("in_selectscreen"))
{
if(playerkeys(player, 0, "movedown") ){
changeplayerproperty(player, "newkeys", openborconstant("FLAG_MOVERIGHT"));
}
}
if i do:
or evenif(openborvariant("in_selectscreen"))
{
if(playerkeys(player, 0, "movedown")){
int x = 0;
do{
changeplayerproperty(player, "newkeys", openborconstant("FLAG_MOVERIGHT"));
}while (x<=20);
}
}
cursor still only move one time, any ideia about how solve it?if(openborvariant("in_selectscreen"))
{
if(playerkeys(player, 0, "movedown")){
changeplayerproperty(player, "newkeys", openborconstant("FLAG_MOVERIGHT"));
changeplayerproperty(player, "newkeys", openborconstant("FLAG_MOVERIGHT"));
changeplayerproperty(player, "newkeys", openborconstant("FLAG_MOVERIGHT"));
}
}

