This site requires JavaScript, please enable it in your browser!
Greenfoot back
comlink
comlink wrote ...

2018/8/11

Attribute in ShowText?

comlink comlink

2018/8/11

#
In my project, I want to show some text (imagine a health counter, but in digits). I want this text to include one of my attributes, which often changes (In this case: "lifepoints" which descrease if enemy hits you). I hope you understood me and know a solution, Thanks in Advance!
Super_Hippo Super_Hippo

2018/8/11

#
Is that what you need?
getWorld().showText(""+lifepoints, 50, 50);
comlink comlink

2018/8/18

#
Thank You for answering, I'll try that out. That should be, what I was looking for :)
You need to login to post a reply.