Jump to content


Photo

Simulation game question


  • Please log in to reply
2 replies to this topic

#1 gmvlud

gmvlud

    GMC Member

  • New Member
  • 77 posts

Posted 01 November 2010 - 05:10 AM

I have a quick question about simulation sports games. Is it possible in game maker to some how be able to "create" players with random names, attributes, and stats? While at the same time creating a page for that random player, that includes his stats, attributes, and name. Please include examples on how this could be possible.

Thanks
  • 0

#2 Uniquebum

Uniquebum

    GMC Member

  • New Member
  • 317 posts

Posted 01 November 2010 - 07:50 AM

You always have to tell the computer what to do as he can't think himself. Meaning you need to create some kind of algorithm the program follows to achieve that.
  • 0

#3 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 2851 posts
  • Version:GM:Studio

Posted 01 November 2010 - 12:46 PM

As long as you have the base attributes, you can randomize them using the random(x) function, then more attributes you add to a single player, then more variations you will have.. as long as you have defined the basic stats/attributes everything else should be really simple:
atrribute_a = random(50);
atrribute_b = random(50);
atrribute_c = random(10);
atrribute_d = random(100);//Or whatever..
You do that for every player and thats it. :)
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users