|
Post by heckmonster on Jul 13, 2004 3:14:19 GMT -5
how do u make it so u can take turns attacking like in super mario rpg
|
|
|
Post by IsmAvatar on Jul 13, 2004 12:21:33 GMT -5
I've never played the game, but turn-based is so common I know what you're talking about anyways.
Simply make a global variable. When you're trying to do an action, check to see if the global variable is in your favour. If it is, do that action and switch the global variable to the other player's turn. And the same for the opponent.
I like the variable global.turn use 1 and 0 as the values and it should be easy to switch: global.turn = !global.turn
|
|