turn game for 4 players

Get help using Construct 2

Post » Thu Dec 20, 2012 11:05 pm

i dont know how collect events to receive a complete turn game for 4 players, any one have idea how to start ?



B
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

Post » Thu Dec 20, 2012 11:52 pm

I would suggest using an array as it allows for push/pop/add so that custom event commands can be added in order linear order and removed in linear order.

I would then add your "events" as string commands( command|varias data relevent to command)

then on executing your turn order stuff
loop array each
commandString = array(loopindex)
commandEvent = tokenate(commandeString, 0, "divider")
commandData = tokenate(commandString, 1, "divider")
then Function.Call(commandEvent, commandData)

https://dl.dropbox.com/u/14087254/turnEventsSample.capx
here is a capx of what I'm thinking. I'm not saying it's the best. Just the only one I can think of. FYI. This capx sorta works. It moves the green box as a sample of executing a command.jayderyu2012-12-21 00:06:14
B
87
S
18
G
9
Posts: 2,455
Reputation: 14,834


Return to How do I....?

Who is online

Users browsing this forum: LaroTaio and 2 guests