Hello friends...
I becomed a tiered from tring to do this...
I want to move my actor by keyboard and I did that ..
if (Keyboard.KeyCode == VK_UP) {
actor.GoTo(actor.X, actor.Y-50);
} else if (Keyboard.KeyCode == VK_DOWN) {
actor.GoTo(actor.X, actor.Y+50);
} else if (Keyboard.KeyCode == VK_LEFT) {
actor.GoTo(actor.X-50, actor.Y);
} else if (Keyboard.KeyCode == VK_RIGHT) {
actor.GoTo(actor.X+50, actor.Y);
and it works very well ..but I need the other 4 direction UpRight , UpLeft , DownRight and DownLeft...
now I can do that by the space for example:
} else if (Keyboard.KeyCode == VK_SPACE){
actor.GoTo(actor.X+50, actor.Y+50);
and it works very good
But I want to exchange the space(VK_SPACE) and but Down and Right bottons together on the keyboard..
I tried:
} else if (Keyboard.KeyCode == VK_RIGHT + VK_DOWN){
actor.GoTo(actor.X+50, actor.Y+50);
but it dos not work..
my question is:
How can I choose two keys on the keyboard must be cleacked together to do event?