Graal Forums  

Go Back   Graal Forums > PlayerWorlds > Era Main Forum > Era Bugs and improvements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 12-31-2009, 10:59 PM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
Quote:
Originally Posted by cbk1994 View Post
Of course it's possible to create scripted projectiles, but these simply cause more problems, especially with people who lag.
No they don't o.o

If you mean network lag, no, because they're handled exactly the same as bullets are- clientside. And you can improve synchronization over Graal's default by using timevar2 and timevar.

If you mean clientside lag, the difference in performance is extremely negligable and may even be an improvement over built-in projectiles.

It fixes all your problems with projectiles if you do it right

They won't disappear over level links, they'll actually work on barrels and boxes, and other things. Sure, it requires a bit of work, but it's not insanely difficult.

The way I did it was with arrays, stored x, y, an x movement vector, a y movement vector, a creation time, and a direction to face. Sent that information via a triggerclient type deal and stored it in other players, used the creation time to synchronize them more effectively than Graal's default, and then rendered a bullet gani at x, y with the direction stored. Collision was simple enough, obviously. They didn't have to be destroyed over level links on the same overworld. Worked fabulously.

If your idea was to spawn NPCs to work like bullets, forget that idea, it undoubtedly eats up network performance and clientside resources as opposed to the single system script approach described above. I see you did the separate NPC per bullet approach in one of your servers, I read a thread on it a while ago.

If I can do it in 2005, when I'm 11, in GS1, without an NPCServer, in the 2.17 client, with no visible performance difference on a computer with the processing power from that same time period, surely you can do it in the present, no? I remember there was no timevar2 then, so I had to play an MP3 in the background and use musicpos to get an accurate creation time
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.