| 09-23-2007, 05:16 PM | #1 |
I know this has been asked before but i didn't find a suitable answer. So my question is: Is it possible to make a system that uses the keyboard to make a unit (a ship) move like in asteroids, without lag online? I can do jass and gui so if it possible either way ill need to know. Also i know the gui way just not the jass syntax for this if u can please point it out. And i understand the calculations behind this as well. -Thanks Salbris. |
| 09-23-2007, 05:32 PM | #2 |
Yes, it's rather simple and has to do with periodic events and detecting key presses. Do a search on such a similar subject and you'll turn something up. |
| 09-23-2007, 05:38 PM | #3 |
I did and that is why i am asking. |
| 09-23-2007, 05:44 PM | #4 |
Actualy, it's not possible to make a system that uses the keyboard to make a unit (a ship) move like in asteroids, without lag online. At least the "without lag" part isn't, because arrow keys are rather unresponsive when playing online. |
| 09-23-2007, 05:53 PM | #5 |
How bout in jass or using hotkeys on spells? |
| 09-23-2007, 05:59 PM | #6 |
With hotkeys, much less lag. Jass or not has no impact though. |
| 09-23-2007, 06:13 PM | #7 | |
Quote:
In your experience would i lag if 8 players were playing at the same time with this system? (hotkeys) |
| 09-23-2007, 06:23 PM | #8 |
Depends on the player connections, hotkeys would be like using spells, so if you could play an 8 player game with people who are casting spells constantly and not lag. Then you should be fine. |
| 09-23-2007, 06:25 PM | #9 | |
Quote:
But would the addition of moving the units lag it ? That also raises a much more complex question how do i read a contuinous effect such as contuining to turn while the a key is pressed. ... In other words can i make spells only work when the key is pressed or is it a one time thing. How do i explain this... You know in games such as asteroids where holding the left key down makes you rotate in that direction till you let go... Well is that possible here with spells? |
| 09-23-2007, 06:58 PM | #10 |
No, you must continually press the hotkey. There are no "rapid-fire" spells that I am aware of. |
| 09-23-2007, 07:10 PM | #11 | |
Quote:
What i am suggesting is a spell or w/e where you hold down the a key for example and it rotates the ship until you let go. Maybe jass would allow this? |
| 09-23-2007, 07:18 PM | #12 |
No. You could do it with channeling spells, but that would still require you to press the hotkey again when you wanted to stop turning. |
| 09-23-2007, 07:19 PM | #13 | ||
Quote:
Quote:
Edit: My quoting skills > Pyro's typing skills. Even if it took me longer. |
| 09-23-2007, 07:27 PM | #14 |
Ah, but mine is an alternative. |
| 09-23-2007, 07:30 PM | #15 |
There a tutorial about this in Tutorials/Triggers in GUI I think. Wait for it... After a second of searching: A tutorial has been found! Also, I've heard of programs that can run on LAN code (or something like that) so that games will seem lagless. Instead, the lag kinda gets squished together into lag spikes (or so I've heard). I've played a game with this, and it does seem to do the trick. If I'm wrong, I'm not to blame. Listchecker Program. I don't have much else to tell you about it, besides reading the site and doing more Google searches for "listchecker." Urgh, might have malicious code though. You never know... I'm still not to blame if something bad happens. |
