The Daily Click ::. Forums ::. Team Projects ::. Can anyone program code for person's name above it's head?
 

Post Reply  Post Oekaki 
 

Posted By Message

Reno



Registered
  11/01/2005
Points
  906
17th September, 2005 at 19:00:57 -

Can anyone program code for person's name above it's head in a mooclick game.I'm having trouble with this and cannot seem to get each person to sign on, there own name above there head. I'm using mooclick so if anyone could make an example for me, then this would help me out alot! Also this game I need this code for is a MMORPG so you will have to loop the event for every one person.

So can anyone plz help me? (I will also put your name at the end of the credits if you want)

Reno

 
Reborn Again

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
17th September, 2005 at 20:38:27 -

I did this by using active system boxes for the text. They have alterable values. Spread values in the characters and text, then have a condition saying if the value of the text equals the value of the player then set its position to over its head.

 
n/a

Retired Kliker Lazarus

The Ed Wood JR of TDC

Registered
  18/07/2003
Points
  7363
17th September, 2005 at 21:13:13 -

I suggest you use text blitter.

 
Fine Garbage since 2003.
CURRENT PROJECT:
-Paying off a massive amount of debt in college loans.
-Working in television.

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
18th September, 2005 at 05:01:43 -

Have a list of player names. For our immediate purposes, we'll say it's a 1-based list.

Always:
---Spread 1 in value A of "Player"

Start of Frame:
+Number of players is less than the number of string objects (or whatever you're using to show the text)
---Start loop 'blah' this many times: NObjects("Player")-NObjects("string")

On Loop "blah":
---Create string object somewhere (or text blitter object, whatever)

Always:
---Set position of string object to position of player (so it's set just over his head)
---Set text to GetLine$("list", alterable value a("player")



This basically creates a string object (or anything else) for every player object that exists (we assume you've already created all the player objects that you'll use).

Next it sets the position of each string object against each player object. Their alterable values will line up too. This is handled automatically by MMF.

 
191 / 9999 * 7 + 191 * 7

Reno



Registered
  11/01/2005
Points
  906
18th September, 2005 at 09:53:42 -

Yes. Dines way is wierd. I'll just use Phizzy's idea because his makes the most cents*.

 
Reborn Again

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
18th September, 2005 at 10:46:35 -

Yuh, I read your post too fast - didn't realise this was meant to be for MOO, I thought you meant a local-based multiplayer.

In that case you just generate/delete objects when players sign of and on, and check who's already in the room when you join. In this case all you need to take from my code is the final Always event.

All the best with it!

 
191 / 9999 * 7 + 191 * 7

Reno



Registered
  11/01/2005
Points
  906
18th September, 2005 at 12:30:56 -

Ya thnx. I got the Whole name engine to work right except destroying after log off. This isn't a big deal thoe. But if you could help me on this, then thx.

 
Reborn Again

Deleted User
19th September, 2005 at 23:03:53 -

i ave a lame way but i see this is already solved so hers an agge post

Agge post: y aknow since im so smart i know that if you just ask phizzy to do it it wont just be him running around naked or somthing

 

vortex2



Registered
  27/05/2002
Points
  1406
19th September, 2005 at 23:49:57 -

Please just go away and never come back, Thanks.

 
A bit of insanity with every bite!

Zapper



Registered
  05/02/2003
Points
  435
20th September, 2005 at 11:58:01 -

Amen to that, sister!

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
20th September, 2005 at 12:27:44 -

fuck off, hillbill198, you're just jealous coz you don't know shit about moo because you're a n00b. Leave the community and never come back

 
n/a

..:.Phox.:..



Registered
  18/02/2005
Points
  646

VIP MemberHero of TimeI like Aliens!Cardboard BoxAttention Getter
20th September, 2005 at 13:08:54 -

yeah!

 
Profile edited as it messed the layout of the site up.
   

Post Reply



 



Advertisement

Worth A Click