| Mirage Source http://miragesource.net/forums/ |
|
| Attacking While Moving http://miragesource.net/forums/viewtopic.php?f=201&t=3700 |
Page 1 of 1 |
| Author: | wisefire [ Fri May 09, 2008 4:42 pm ] |
| Post subject: | Attacking While Moving |
Well in Mirage when your walking you can press the arrow keys and attack and walk at the same time. I'm wanting to find a way to stop this. I tried various things in CheckInput but nothing worked. Any ideas? |
|
| Author: | Asrrin29 [ Fri May 09, 2008 5:14 pm ] |
| Post subject: | Re: Attacking While Moving |
There is code in there already to prevent you from casting while moving, take a look at that and see if you can adapt it to attacking as well. |
|
| Author: | wisefire [ Fri May 09, 2008 5:52 pm ] |
| Post subject: | Re: Attacking While Moving |
Asrrin29 wrote: There is code in there already to prevent you from casting while moving, take a look at that and see if you can adapt it to attacking as well. Allright, I messed with it and it works, but its not great. Basicly They can still walk and attack, theres just a delay in between the attacking becuase canmove is false, But after the character attacks, it advances a step and attacks again. But, it looks better. Thanks. |
|
| Author: | Lea [ Fri May 09, 2008 6:52 pm ] |
| Post subject: | Re: Attacking While Moving |
You could check if an arrow key is down at the same time control is down. Then you could ignore the appropriate key. |
|
| Author: | Robin [ Sat May 10, 2008 10:30 am ] |
| Post subject: | Re: Attacking While Moving |
Or just 'Exit Sub' if control is down, and have the directional keys' checks below it. So: If ControlDown = True then attack so on and so forth exit sub end if If DirectionUp.... Something like that. |
|
| Author: | wisefire [ Sat May 10, 2008 4:31 pm ] |
| Post subject: | Re: Attacking While Moving |
Dave wrote: You could check if an arrow key is down at the same time control is down. Then you could ignore the appropriate key. I tried that, It didn't work. Robin, I'll try what you were saying in a moment. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|