how do i attach text to object

Get help using Construct 2

Post » Tue Dec 11, 2012 5:51 pm

like hp text.

ill show an example in a a game i made once:

http://yoelscripts.cowhosting.net/flashpunk%20_source/zombie/bin/

a text box that follows the enemy character and shows how much life he has.

also any advice on how to get in to all this?

im used to oop as3 flaspunk devlopment (and php opp and python etc...)
how dose all this works here?

c2 has a lot of adventges and things i dont know how to do alone...but it also lakes the coding im used to...
B
3
Posts: 5
Reputation: 360

Post » Tue Dec 11, 2012 6:21 pm

Here's one way to do it:

EnemyHealthText.capx (r111)
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Dec 11, 2012 7:45 pm

it didnt let me open it because i have an older version of c2...
thats what the error says.

if they had a coding language you could of given me a code snipit
any chance for a good screenshot of your events?

thank you.

btw any advice about oop its hard for me to get used to working witout it...
B
3
Posts: 5
Reputation: 360

Post » Tue Dec 11, 2012 7:59 pm

I could write it down for you or take a screenshot, but it's much easier and faster for me to just upload a .capx instead of typing everything in the forums, plus you get the benefit of seeing how it all comes together. I have also added some comments to the event sheet.

If you click the link in my signature you'll be directed to the archives page where you can update to the latest version if you want. I don't have time for anything else right now.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Dec 11, 2012 9:04 pm


thank you for your help i updated. your example was most helpful.
B
3
Posts: 5
Reputation: 360


Return to How do I....?

Who is online

Users browsing this forum: Televangelist and 26 guests