Two Laptop Bag*
The moose likes Java Micro Edition and the fly likes String on Layer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "String on Layer" Watch "String on Layer" New topic
Author

String on Layer

Koh Khai Huat
Ranch Hand

Joined: Aug 05, 2005
Posts: 100
Hi guys,

I have got a question to ask and hope that someone can give me an suggestion or some advice.... here is what i am trying to do....

I am working on a J2ME game and i have encounter some problem.... I am trying to draw a String beside a Moving Sprite or a Layer. So i did this



but the out come is that the String was not drawn at the place of the sprite

so i did a little check and see what is the problem and i found out that the X and Y then i got from the sprite was taking the Back ground layer's 0,0 as a refrence but for the drawString(); it is taking the view windows's top left corner as the 0,0 refrence point

so i would like to ask if any one of you guys got any suggestion to this problem or some advice on sloving this problem...

Thanks in advance

regards
KKH


if (!WorkHard){
System.out.println("Fail!!!");
}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String on Layer
 
Similar Threads
What does it mean to convert tile positions to pixel positions in a tilebased map?
Perhaps this time the fleet needs to sail
SymbianOS error = -34
Disable Key Input in a J frame
String parsing