This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-30 12:26:26

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Block Catch Online - An attempt at a multiplayer online game.

I've been playing around with panther a bit and searching through the forums, as well as looking at a few other multiplayer games' code, and with that knowledge I decided to make my own. Block Catch Online, a game based off of duck hunt where a block flies around the screen, and you must be the first one to catch it.

The system goes like this: (Created in panther)

I've made a client, and a registration project that will give you a username and password (if the username does not exist) and then you can use your username and password to log into the game with a client. The server is started and a blue block bounces off a server. The block records it's X and Y into variables, and another sprite in the client to represent the block goes to the same position as the server block, therefore everyone will have the same block velocity and position. Once somebody clicks their block, a broadcast is sent to the server. The server block receives the clicked broadcast and resets it's position and velocity likewise, and then it sends back a broadcast telling the clients they can click it again.

Problems:

(Hopefully WILL be solved.) Once I connect a second client with a different username, the entire game, all servers and clients, freeze. I think it's because I'm connecting more than one on one computer, mine. I can't necessarily release it because of the problems below.

(Hopefully Solved) Hackers. They can easily make it so the block follows their cursor and they can never miss. I've been thinking about a server-sided solution where it would check to see if the mouse was a certain distance from the block, but of course because of the slowness the judgements wouldn't be accurate. The only way to fix this is .exe compiling.

(Unsolved, but unimportant.) Spam. I've added a chat feature, and I have no way of preventing spam. I've tried to use the timer to check if there has been 1 second between messages, but then if two people entered in a chat message at once, only one would show up, and the conversation would be one-sided.

Until I can fix these problems, I'll have to put the release on hold.

...Too late. :3

Last edited by Kingdaro (2010-05-30 13:05:10)

Offline

 

#2 2010-05-30 12:29:08

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

Nice  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

#3 2010-05-30 12:31:52

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Block Catch Online - An attempt at a multiplayer online game.

johnnydean1 wrote:

Nice  smile

Thanks, it's my first so I wanted to make it simple.  smile

Offline

 

#4 2010-05-30 12:37:49

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

Yes a MMOG is alot harder.


You can now reach me on Twitter @johnnydean1_

Offline

 

#5 2010-05-30 12:51:19

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Block Catch Online - An attempt at a multiplayer online game.

johnnydean1 wrote:

Yes a MMOG is alot harder.

This is still hard, though. XD

I believe I've fixed the hackers problem by recording x and y mouse values and making the clicking server sided, so I might be able to release.  big_smile

(Also, the spam problem doesn't matter that much to me anymore. And I want to test two clients on different computers,). Let me just upload in a sec... (open in panther :3)

Offline

 

#6 2010-05-30 12:54:00

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

KK post a link and Ill see (I know what im doing with mesh)


You can now reach me on Twitter @johnnydean1_

Offline

 

#7 2010-05-30 12:58:31

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Block Catch Online - An attempt at a multiplayer online game.

johnnydean1 wrote:

KK post a link and Ill see (I know what im doing with mesh)

I'm sure you do, having made the first MRPG on Scratch XD

Also, the Panther blocks automatically connect you, and if they don't, look into the code and manually connect yourself.

Offline

 

#8 2010-05-30 13:05:49

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

Server?


You can now reach me on Twitter @johnnydean1_

Offline

 

#9 2010-05-30 13:15:00

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

I would like the server to see the entire game as it happens, so I can show you how to prevent hackers.


You can now reach me on Twitter @johnnydean1_

Offline

 

#10 2010-05-30 13:16:17

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

I cant access them (temp. unavalible)


You can now reach me on Twitter @johnnydean1_

Offline

 

#11 2010-05-30 13:24:29

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

They all say temparay unavalible. Try Media Fire


You can now reach me on Twitter @johnnydean1_

Offline

 

#12 2010-05-30 13:28:53

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Block Catch Online - An attempt at a multiplayer online game.

http://www.mediafire.com/?sharekey=2476636b32c433b3ed24a2875c7fa58ec58ff7a2f4d9eb604eb74d8a6cde9cae

Hopefully this works. ^^

Offline

 

#13 2010-05-30 13:55:10

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

Yay it works, but Password Protected server


You can now reach me on Twitter @johnnydean1_

Offline

 

#14 2010-05-30 13:58:13

Kingdaro
Scratcher
Registered: 2008-06-08
Posts: 100+

Re: Block Catch Online - An attempt at a multiplayer online game.

johnnydean1 wrote:

Yay it works, but Password Protected server

Yes, the password is "ilikescratch" or "ilovescratch" I forget which one XD

It's "ilovescratch" :3

Last edited by Kingdaro (2010-05-30 13:58:51)

Offline

 

#15 2010-05-30 14:20:59

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Block Catch Online - An attempt at a multiplayer online game.

Ok will look at them all soon. I am making a simple Panther MMOG with scrolling and variable making and im nearly done  smile  If you want I'll post it when im done.


You can now reach me on Twitter @johnnydean1_

Offline

 

Board footer