android - Determine turn taking in game -
i creating game , highly appreciate advise on this.
i have activity loads class , class loaded, text view shows player 1 turn. understand can set in xml.
but when player 1 loses game text field should show player 2 turn.
it great if explain how this.
even better if 2 people enter there names 1 player 1 , player 2 show names of turn is.
many thanks.
1) dont set text in xml file. since app supposed set text dynamically
2) read this. can use settext() dispay desired text.
code textview
textview tv = (textview) findviewbyid(r.id.yourtextviewid)
it if read book on android programming before starting game programming
Comments
Post a Comment