≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
that's how you can setup custom health bar
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b][/b] wrote: @douwedabbe you are using a variable name as a property. Don't use ccbGetSceneNodeProperty for the health variable. Instead you need to use. ccbGetCopperCubeVariable("hashtagclerk.health") Also while accessing properties you did a typo in "player" And wrote it "pl;ayer" and you are using so many symbols with the variable name thats why you are getting illegal character errors. However if you didn't had performed typo and used symbols it still would have throw you an error cause you were using variable as a property and it will throw an errror property doesn't exist. To fix them simply replace your line with this [Code]var myHealth = ccbGetCopperCubeVariable("hashtagclerk.health"):[/code] Replace "hashtag" with hash symbol And it should work fine.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact