#How do I make my game run smoother

1 messages · Page 1 of 1 (latest)

silk ledge
#

I'm making an assassin type character for my game and it's complete, but... it's sort of.. janky. The projectiles work, but they visually hit the target before they actually do (only visually of course) and I wanted the projectiles to bounce off of walls but the timing was consistently off. I use task.wait and I barely use heartbeats, would I have to change every thing to heartbeats or is there something else that could be causing it?

hybrid storm
#

In computers, lag is delay (latency) between the action of the user (input) and the reaction of the server supporting the task, which has to be sent back to the client.
The player's ability to tolerate lag depends on the type of game being played. For instance, a strategy game or a turn-based game with a slow pace may have a high threshold or ev...

silk ledge
#

I've seen games like critical strike work with extremely accurate hitboxes and I don't understand how they function

hybrid storm
#

Client-side prediction is a network programming technique used in video games intended to conceal negative effects of high latency connections. The technique attempts to make the player's input feel more instantaneous while governing the player's actions on a remote server.
The process of client-side prediction refers to having the client locall...

hybrid storm
#

that way when a projectile hits, the prediction won't be wrong. the drawback is you have some input delay

#

which is usually fine, it's good enough for tsb

silk ledge
#

well tsb usually uses explosions so it really doesnt matter but yeah that's true i guess

silk ledge
#

im very new to scripting lol

silk ledge
#

wouldnt that cause even more delay or am i wrong

hybrid storm
silk ledge
#

i already do

#

like

#

but like

hybrid storm
#

well, part of it

silk ledge
#

remoteevents have some semblanse of input delay

hybrid storm
#

the full pattern is really difficult to do correct, s4 tier even. not for beginners

silk ledge
#

i have 6 months of experience

hybrid storm
silk ledge
#

how would i even explain this

hybrid storm
#

you can hide lag or move where the lag happens but you cannot avoid it entirely

silk ledge
#

my "class" (lets just call it that) throws knives and they hit enemies and deal damage and the class works well but visually its just very unappealing because the knives just disappear like 5 studs before they hit the enemy because of lag and delay

hybrid storm
#

i.e clientside prediction moves the lag to the impact, like if you got shot 3 frames ago and your client is 5 frames behind, and in those 2 frame difference you duck behind cover, you still get hit. that's usually more desirable than an input delay.

silk ledge
#

how would you

#

calculate that individually

trail gardenBOT
#

studio** You are now Level 7! **studio

hybrid storm
silk ledge
#

i see

hybrid storm
#

so just use remotes

silk ledge
#

well yeah i wasnt really going to

#

okay thanks i get the jist of it

hybrid storm
#

and accept/deal with the delay

silk ledge
#

alr

hybrid storm