The Daily Click ::. Forums ::. Klik Coding Help ::. Any guide for setting up moogame quickly ? i hv no idea for moo......
 

Post Reply  Post Oekaki 
 

Posted By Message

BeanKing



Registered
  28/04/2004
Points
  180
30th April, 2004 at 01:54:55 -

i hv just heard about moo and how to set it up like a death match game?

THXTHXTHXTHXTHXTHXTHXTHXTHX

 
n/a

X_Sheep

I had a custom rating before it was cool

Registered
  01/03/2004
Points
  1313

VIP MemberPicture Me This -Round 23- Winner!Dos Rules!
30th April, 2004 at 03:04:32 -

www.clickteam.com/CTforum

Try searching the File Archive. There are enough MOO examples there to help you out

 
a/n

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
30th April, 2004 at 03:54:08 -

Thats a very generic question. I found it easiest to start small (which is always best) at tigerworks site. He has some good examples for moogame and mooclick which helped me alot. www.tigerworks.co.uk

Now once you've covered the basics, to make a deathmatch game is very simple.


MyPlayer presses "space"

- Shoot mybullet in direction of Myplayer.dir
- Send string to all players on chan 1 = "shoot|" + str$(Myplayer.dir)

On recieved string on chan 1
+(String Parser, First token) RCV string = "shoot"
+Find all Otherplayers with ID of
(Get ID from sent string)

Then

-(Other.player) = shoot otherbullet at (recieved direction)

Otherbullet collides with myplayer
- [take off health or kill player], send string "Died" on chan 2.

Recieved String on Chan 2
+String = "Died"
+Pick all otherplayers with ID = RCV ID from string

- Destroy otherplayer.



Then add your logging on\movement code and hey presto your done! Here's how it works:

When you shoot an object you tell the computer to shoot an object on your screen, then you send the data to the other computers to tell them to pick your character and make him shoot an object. Then if you are hit by another players bullet you will either die or lose health (whatever you coded).

This is a very simple system, but it will get you off too a good start. Make sure you read Tig's tutorials and have 2 Bullet objects (My\Other) and 2 Player objects (My\Other) just like in the tutorials.

-Andy

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
30th April, 2004 at 06:52:27 -

You should . It's great fun to see your online games acutally working, and maybe you can even make the next best click mmorpg!

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
30th April, 2004 at 13:07:20 -

AAndy: I've tried making a mmorpg but i stop when it gets to saving data, cos with mooclick u cant save server-side, or could u maybe store it online in a database by using moosock and somehow getting it back to the app?

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
30th April, 2004 at 14:31:52 -

You have to host your own server, then parse the data.

EX: send to server("S."+"Name"+"."+Health+"."+Strength+"."+Defense)

Then when recieved, use the string parser to break it down.

If the first element is S, use the ini to save the elements under group "name".

I think it's simpler in Jamagic.



 
Kramy

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
30th April, 2004 at 17:57:34 -

KlikMaster - Along the lines of what Kramy said:

You need your own server (If you just want to try it out use the computer you are using now) and you will need to program two applications (the serverside, and the player\client side)

Then you have a register\login screen.( http://www.subsoap.com/ac/files/Login.bmp ) When you click register a few things happen;
-Send a string to the server on chan 1 = "Name" + "#" + "Password"
(# = the 'token' which is a character that the string parser uses to determine between the start and the end of a word. It can be anything but try to use something uncommon. You will also need to program this character to be an illegal character for usernames)

-Then the server reiceives this string and interpretes it with a string parsing object.
-The server then checks if there are any ini files that are made with this name that it has recieved, if not it will create a new ini file named [name].ini which is the player's account name.
-It then sends the data back to the client to tell them whether registration was successful.

*-*-*-*-*-
Player presses Login
----------

-Send string to server on chan 2 = "Name" + "#" + "Password"

-Server recieved string on chan 2 = Interpret with string parser object.
-Server tries to open file with the name of [name] + ".ini" and checks to see if the password is the same as the one the client sent.
-If it is, then send the data to the player to tell him that he has successfully loged in and that he may proceed to the next screen.

-----------------
That's all there is too it. And here's a mmorpg I prepared earlier (non-open source)
http://www.subsoap.com/ac/files/Moorpgexample.zip
You need to run the server first, then run a client or it won't work! This will work if you send the client to other computers as long as you aren't behind a firewall or router firewall.

-Andy




 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
30th April, 2004 at 19:09:30 -

Sorry, I just realized that example won't work because It's programmed to connect to my computer :/

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

BeanKing



Registered
  28/04/2004
Points
  180
30th April, 2004 at 21:22:37 -

moo game hv a function called auto trackng

it seems to b the easiest way to track the object

and im newbie at all , sending x,y , speed is too complicated for me

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
1st May, 2004 at 07:57:09 -

It's called "dead reckoning" which is a way of 'filling in the blanks' and being efficient. The only problem is Moogame's Dead Reckoning is very buggy (Or so I've heard) that's why alot of people don't use it.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy
   

Post Reply



 



Advertisement

Worth A Click