frriend
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 577 |
|
|
| 03 Oct 2015 12:54 AM |
| I want to make the player fly if they hold space fpr 1 second.. how would i achieve this? |
|
|
| Report Abuse |
|
|
CyanRain
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 82 |
|
| |
|
frriend
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 577 |
|
| |
|
CyanRain
|
  |
| Joined: 05 Jun 2014 |
| Total Posts: 82 |
|
|
| 03 Oct 2015 12:59 AM |
| skrub ur funny if you think people will actually help you here |
|
|
| Report Abuse |
|
|
frriend
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 577 |
|
|
| 03 Oct 2015 01:01 AM |
| I've been helped before, so i am sure i will be answered eventually.. Hopefully. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Oct 2015 01:05 AM |
You can do something like this: - UIS.InputBegan, if space key pressed check if some variable is false, if so set a variable to true and while the variable is true - UIS.InputEnded, set variable to false (if space key pressed)
|
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 03 Oct 2015 01:13 AM |
wow i worded that horribly
Using UIS.InputBegan to check if they pressed space and if they did: make sure some variable is false, if it is set it to true and in a loop while the variable is true, do what you want.
Using UIS.InputEnded check if they pressed space, if so set the variable to false. |
|
|
| Report Abuse |
|
|
llogical
|
  |
| Joined: 10 Sep 2015 |
| Total Posts: 193 |
|
|
| 03 Oct 2015 01:39 AM |
be carefull! it may be difficult!
lololololll, i just want to forum! |
|
|
| Report Abuse |
|
|