Page 1 of 1

Monopoly type of game in GE?

PostPosted: Thu Nov 17, 2011 1:00 am
by slyons904
I've created a board game that plays like "monopoly". Is this type of game possible to do in game editor and is there a tutorial that covers the execution of this type of game?

Any info would be a great help.

Thanks!

monopoly_scrnShot02.png


The attachment monopoly_scrnShot01.jpg is no longer available

Re: Monopoly type of game in GE?

PostPosted: Thu Nov 17, 2011 1:12 am
by skydereign
This type of game is entirely possible, but there aren't any examples out there. Pretty much though, if you get a feel for gameEditor how to make it should come pretty naturally. The general idea would be you have a certain number of play actors, and a global array to hold their stats. You'd also need an array of property information. Then the last important bit is to have a variable that cycles through the turns of the players, so if it is 0, then it's the first player's turn, 1 for second, and so on. For ease, you'll have all the property information stored in the array, and same for the player info.

Re: Monopoly type of game in GE?

PostPosted: Thu Nov 17, 2011 3:53 am
by slyons904
That is really helpful, how would the dice work though?

Thanks!

Re: Monopoly type of game in GE?

PostPosted: Thu Nov 17, 2011 3:56 am
by skydereign
You can use the rand function. Essentially have an animation of a dice rolling, but to determine the result (and which animation to play [probably use animation finish]) you can use this.
Code: Select all
int result = ceil(rand(5));

That will get a random number 1-6.

Re: Monopoly type of game in GE?

PostPosted: Thu Nov 17, 2011 4:02 am
by slyons904
much appreciated! i'll get started.