men's morris game

Get help using Construct 2

Post » Tue Oct 01, 2013 3:33 pm

I want to make men's morris game in 3 mode: 3 men's morris,9 men's morris and 12 men's morris.

I want to make a turn base for my game. I use a dice that have 3 red face and 3 black face. I want say if the face is red it's your turn and if it's black it's your enemy turn.
How can I say if frame of my dic is set to 1, 3 and 5 (this faces are red) it's your turn?
Ah, I'm not good at english. If I ask it in strange way, please forgive me
This is my game. Oh of course it's so messy and not complete.http://davvas.com/2x9996h5ci5b

Ah I also don't know how put computer moves in my game
B
6
S
4
G
1
Posts: 5
Reputation: 1,140

Post » Wed Oct 02, 2013 12:29 am

That's a lot of Morris! :)

You can use an event similar to this for rolling.

Dice object > 'Set frame': Choose(1,2,3,4,5,6)

Then you can have an event to check the current frame.

Dice Object, frame is equal to 1, set player turn.
ImageImage
B
119
S
23
G
7
Posts: 1,070
Reputation: 12,989

Post » Wed Oct 02, 2013 11:11 am

oh good. idk that there is some event that check frames. thanks Bro!

uh yeah! I want to say :
if men's morris is 3 then create 3 men
if it's 9, create 9 men
and if it's 12 create 12 men

I put a global variable PlayerCount.
at the start of the game,I create 1 player and if it's 3, I put playercount=3 , for 9 I put PlayerCount=9 and ...
I want to say after I drop that player that I create at first, system create another one. but that's not happened. what should I do?
B
6
S
4
G
1
Posts: 5
Reputation: 1,140


Return to How do I....?

Who is online

Users browsing this forum: evillair, mongoose665, Yahoo [Bot] and 64 guests