Results 1 to 5 of 5
  1. #1
    ralph is offline Member
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0

    Default How to show text (players score) on the screen

    I have an int variable (For players score) that increases when an enemy is killed.

    However, I'm confused as to how to display this on my android phone :/

    Thank you for any help.

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: How to show text (players score) on the screen

    Console? GUI? What are you trying?
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  3. #3
    ralph is offline Member
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0

    Default Re: How to show text (players score) on the screen

    Sorry, I'm using Eclipse and programming an Android game for use on my Samsung S3 (so GUI)

    I get how to print it to the console fine (System.out.println/f), I'm just having trouble displaying it on my phone :/

  4. #4
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,429
    Rep Power
    7

    Default Re: How to show text (players score) on the screen

    I have no idea about Android programming, but using something like a Label would be my first idea.
    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

  5. #5
    ralph is offline Member
    Join Date
    Nov 2012
    Posts
    36
    Rep Power
    0

    Default Re: How to show text (players score) on the screen

    I figured it out, thank you for your help though :)!

Similar Threads

  1. Text on screen
    By goamage in forum New To Java
    Replies: 2
    Last Post: 01-20-2012, 03:20 PM
  2. get text and show it and save it
    By pinar.n in forum AWT / Swing
    Replies: 1
    Last Post: 07-03-2011, 08:05 PM
  3. Replies: 2
    Last Post: 04-27-2011, 05:09 PM
  4. Can't show images onto the screen
    By javaexplorer in forum AWT / Swing
    Replies: 9
    Last Post: 01-14-2010, 07:31 PM
  5. show a high score from tetris
    By stessie in forum Java Applets
    Replies: 0
    Last Post: 03-19-2008, 04:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •