Little Help +Rep
#8

Quote:
Originally Posted by Mouiz
Посмотреть сообщение
but the balloon does not move when i press keys:
Code...
Yes, well, that is due to your coding. Try to code it this way: when a player types the /balloon command set a repeating timer for the player with interval of lets say 500ms.
Then, in the timer callback check for keypresses and use MoveObject accordingly. Don't waste server resources by creating many 30ms timers in such short intervals!
Reply


Messages In This Thread
Little Help +Rep - by Mouiz - 13.07.2015, 12:20
Re: Little Help +Rep - by Virtual1ty - 13.07.2015, 12:37
Re: Little Help +Rep - by Vicky69 - 13.07.2015, 12:38
Re: Little Help +Rep - by SoFahim - 13.07.2015, 12:39
Re: Little Help +Rep - by Mouiz - 13.07.2015, 12:40
Re: Little Help +Rep - by Mouiz - 13.07.2015, 12:55
Re: Little Help +Rep - by SoFahim - 13.07.2015, 13:02
Re: Little Help +Rep - by Virtual1ty - 13.07.2015, 13:20
Re: Little Help +Rep - by Mouiz - 13.07.2015, 13:22
Re: Little Help +Rep - by SoFahim - 13.07.2015, 13:26

Forum Jump:


Users browsing this thread: 2 Guest(s)