Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How can I create a Ping System?
- billk123
- Scratcher
28 posts
How can I create a Ping System?
Can somebody please tell me about how to make a ping system? That would be very much appreciated.
- OmnipotentPotato
- Scratcher
1000+ posts
How can I create a Ping System?
I don't think that would be possible. You can make an FPS system though.
- RPFluffy
- Scratcher
1000+ posts
How can I create a Ping System?
If your wondering on how to ping someone go to a terminal on a computer and put this in the advanced topic forum but unless you mean through scripts then no put you can do FPS (Frames Per Second, frame means picture)
Nothing Is EVER 100%, that is just an assumption.
Some important links: Here and here or need help click Here. Eats followers, Loves helping people.
My “..” and “…” are not spelling mistakes, it means that they are ways of telling someone that I can continue more about it and that the sentence isn't ended the best way. I like putting new indents and lines so I can split up what I am talking about.
Some important links: Here and here or need help click Here. Eats followers, Loves helping people. Check this MMO out! Kiwi = Support WHAT THAT'S IMPOSSIBLE: Through the drop down ;)if <> :: control cstart
else :: control
end
- billk123
- Scratcher
28 posts
How can I create a Ping System?
I mean on Scratch. I looked at Log's ping thing and I would like to recreate it for my game.
- theonlygusti
- Scratcher
1000+ posts
How can I create a Ping System?
Are you talking about pong? Or an actual ping?
- OmnipotentPotato
- Scratcher
1000+ posts
How can I create a Ping System?
Ping and pong are in no way related. Based on the posts, they are referring to ping. Are you talking about pong? Or an actual ping?
- billk123
- Scratcher
28 posts
How can I create a Ping System?
This is correct. A ping.Ping and pong are in no way related. Based on the posts, they are referring to ping. Are you talking about pong? Or an actual ping?
- DesolateTen
- Scratcher
20 posts
How can I create a Ping System?
could you be more clear? Do you mean measure the time it takes to respond to a request?This is correct. A ping.Ping and pong are in no way related. Based on the posts, they are referring to ping. Are you talking about pong? Or an actual ping?
Because if so, you could implement something like this:
forever
if <[(ping)] = [1 ]> then
reset timer
task
say (timer) for (2) secs
set [ping v] to [0 ]
end
end
- MoreGamesNow
- Scratcher
100+ posts
How can I create a Ping System?
Ping is, roughly speaking, the time it takes for messages to go from a server to a client. It is difficult to draw an equivalence to common Scratch concepts, but roughly it could be a measure of delay between your cloud variables being updated. An example script might use on of the public variables as a sample and be:
Every time the public variable is changed it is registered as a separate message issued from a ‘server’ (originating from another client in the case of Scratch). This is hopefully indicative of the other variables updating (I haven't done much with Scratch 2.0, so I don't know if this holds true, but I'd guess they're all updated essentially simultaneously).
when gf clicked
forever
set [x v] to (global variable)
reset timer
wait until <not <(x) = (global variable)>>
set [ping v] to (timer)
Every time the public variable is changed it is registered as a separate message issued from a ‘server’ (originating from another client in the case of Scratch). This is hopefully indicative of the other variables updating (I haven't done much with Scratch 2.0, so I don't know if this holds true, but I'd guess they're all updated essentially simultaneously).
Last edited by MoreGamesNow (Oct. 7, 2014 02:00:41)
“Experience: that most brutal of teachers. But you learn, my God do you learn.”
- C.S. Lewis
- INSERT-USER_NAME
- Scratcher
1000+ posts
How can I create a Ping System?
Hello there, you seem to be new to the forums, please do not post on old topics, as it is generally frowned upon, I agree with @MoreGamesNow
—-
script variables ((a::variables)::grey)@addInput::grey—-
The Final Code: 58452000003464246240
Rebounce code:
64977071677197716771976466626297131133339713113333976366676297629762976297629762976297629762976297636262626297666262626297656262626297696262626297686262626297706262626297636362626262977162626262977162626262977166973797263646184448745046184495361034189700
01/8384799060101652/4/100/1/2/4/42.669/67.287/51.018/9999.999/9999.999/9999.999/9999.999/9999.999/9999.999/9999.999
- Discussion Forums
- » Help with Scripts
- » How can I create a Ping System?