Discuss Scratch

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.
theonlygusti
Scratcher
1000+ posts

How can I create a Ping System?

Whats a Ping system?

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?

gcenac
Scratcher
100+ posts

How can I create a Ping System?

when green flag clicked
ask [Say ping] and wait
if <(answer) = [ ping]> then

say [Pong] for (3) secs
end


OmnipotentPotato
Scratcher
1000+ posts

How can I create a Ping System?

theonlygusti wrote:

Are you talking about pong? Or an actual ping?
Ping and pong are in no way related. Based on the posts, they are referring to ping.
billk123
Scratcher
28 posts

How can I create a Ping System?

OmnipotentPotato wrote:

theonlygusti wrote:

Are you talking about pong? Or an actual ping?
Ping and pong are in no way related. Based on the posts, they are referring to ping.
This is correct. A ping.
DesolateTen
Scratcher
20 posts

How can I create a Ping System?

billk123 wrote:

OmnipotentPotato wrote:

theonlygusti wrote:

Are you talking about pong? Or an actual ping?
Ping and pong are in no way related. Based on the posts, they are referring to ping.
This is correct. A ping.
could you be more clear? Do you mean measure the time it takes to respond to a request?

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:

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
ImaLlama150
Scratcher
1 post

How can I create a Ping System?

I agree with @MoreGamesNow
INSERT-USER_NAME
Scratcher
1000+ posts

How can I create a Ping System?

ImaLlama150 wrote:

I agree with @MoreGamesNow
Hello there, you seem to be new to the forums, please do not post on old topics, as it is generally frowned upon,


—-
script variables ((a::variables)::grey)@addInput::grey
—-
The Final Code: 58452000003464246240
Rebounce code:
64977071677197716771976466626297131133339713113333976366676297629762976297629762976297629762976297636262626297666262626297656262626297696262626297686262626297706262626297636362626262977162626262977162626262977166973797263646184448745046184495361034189700
Truck Driving Code:
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

Powered by DjangoBB